-
Notifications
You must be signed in to change notification settings - Fork 3
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
[WIP] Implement terraform bootstrap stage #65
[WIP] Implement terraform bootstrap stage #65
Conversation
web/deploy/terraform/modules/bootstrap/state_storage/dynamodb-policy.json.tpl
Outdated
Show resolved
Hide resolved
web/deploy/terraform/modules/bootstrap/state_storage/variables.tf
Outdated
Show resolved
Hide resolved
web/deploy/terraform/staging/main.tf
Outdated
module "shared_resources" { | ||
source = "../modules/shared_resources" | ||
source = "../modules/shared_resources" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We won't be calling this module from each environment because otherwise we'll end up with duplicate resources. You'll want to extract this call to its own file that we run only once
1ecf003
to
8a8db15
Compare
Remove `README.md` because it outlines a manual process that is not automated by terraform/opentofu
8a8db15
to
70021ad
Compare
70021ad
to
6ed16ca
Compare
b4678c1
to
31dd6a0
Compare
73f5155
to
bf7263f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smokestacklightnin we still need to define the S3 backend created on the state
stage inside the shared and staging folders. You can adapt the existing terraform backend block or move it to its own backend.tf
file
web/deploy/terraform/state/main.tf
Outdated
} | ||
|
||
module "stage_state" { | ||
source = "./modules/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'd usually specify the module name, but it would need to be inside a subfolder. Do you think it would make sense to move those files to their own subfolder and then specify its name here?
superceded by #67 |
This is still a work in progress.
This PR implements a bootstrap stage to create state resources discussed in Issue #60.
This PR includes:
Important: The IAM policy logic will need to be uncommented before this PR is merged.