Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Terragrunt to simplify staging and production environments. #28

Closed
bryan-robitaille opened this issue Jun 22, 2021 · 3 comments · Fixed by #136
Closed

Implement Terragrunt to simplify staging and production environments. #28

bryan-robitaille opened this issue Jun 22, 2021 · 3 comments · Fixed by #136
Assignees
Labels
development help wanted Extra attention is needed

Comments

@bryan-robitaille
Copy link
Contributor

bryan-robitaille commented Jun 22, 2021

We currently have an issue keeping two separate terraform repos as moving changes through staging to production is cumbersome and error prone.

Terragrunt will allow for the declaration of separate stand alone modules allowing for easy injection of variables that differ between the staging and production environment.

Requires complete refactoring of terraform code for extraction of modules and variables.

Project that have already gone this path:
Notifications
Covid Alert Metrics

@bryan-robitaille
Copy link
Contributor Author

Moving to icebox as there is no current capacity to complete. Hoping to have Platform SRE team complete.

@bryan-robitaille
Copy link
Contributor Author

bryan-robitaille commented Oct 27, 2021

For reference: branch with existing work on migration
https://github.com/cds-snc/forms-staging-terraform/tree/terragrunt

@bryan-robitaille bryan-robitaille added development help wanted Extra attention is needed labels Oct 27, 2021
@patheard patheard self-assigned this Nov 1, 2021
@patheard
Copy link
Member

patheard commented Nov 1, 2021

Going forward, the Terragrunt refactor will happen in this repo as follows:

  1. Create new folders to holder Terragrunt configuration.
  2. Use Scratch account to validate infrastructure can be created properly.
  3. Migrate existing Staging/Production AWS resources to the new Terragrunt state files.

Related to cds-snc/platform-sre-security-support#47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants