Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aknysh
Copy link
Member

@aknysh aknysh commented Nov 19, 2020

what

  • Update to stacks (instead of environment/stage)
  • Update to components (instead of projects)
  • Add import to all configs
  • Remove hardcoded settings
  • Add Terraform S3 backend generation
  • Simplify

why

  • Use stacks instead of environment/stage to define configurations - this will allow arbitrary naming the stacks and not tying them to env/stage, as well as separation of stacks for the same environment/stage into different files (e.g. terraform config in one file, helmfiles config in another), or separation of stacks by AWS resources
  • Add import to YAML stack configs - allow automatically importing global-globals and stack-globals into each configuration
  • Remove hardcoded settings - make the CLI generic (no hardcoded namespaces, regions, IAM roles, etc.)
  • Add (and simplify) the CLI commands to generate Terraform S3 backend configs for each Terraform component

@aknysh aknysh requested a review from osterman November 19, 2020 01:25
@aknysh aknysh requested a review from a team as a code owner November 19, 2020 01:25
@aknysh aknysh self-assigned this Nov 19, 2020
@aknysh aknysh changed the title Update to stacks. Add import to all configs. Remove hardcoded settings. Add Terraform S3 backend generation Update to stacks. Add import to all configs. Remove hardcoded settings. Add Terraform S3 backend generation Nov 19, 2020
Comment on lines +1 to +11
namespace: eg

terraform_backend_environment: ue2

terraform_backend_stage: root

terraform_backend_role_environment: gbl

terraform_backend_role_stage: root

kubeconfig_profile_environment: gbl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
namespace: eg
terraform_backend_environment: ue2
terraform_backend_stage: root
terraform_backend_role_environment: gbl
terraform_backend_role_stage: root
kubeconfig_profile_environment: gbl
components:
globals:
namespace: eg
terraform_backend_environment: ue2
terraform_backend_stage: root
terraform_backend_role_environment: gbl
terraform_backend_role_stage: root
kubeconfig_profile_environment: gbl

@aknysh aknysh merged commit 835c568 into master Nov 19, 2020
@aknysh aknysh deleted the update-to-stacks branch November 19, 2020 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants