-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Summary Relates to, but does not fully complete, #2391 ### Time to review: __2 mins__ ## Changes proposed - Configures metabase with the latest secrets management stuff. - Adds configure for deploying metabase staging and prod. Deploys are manual, and I haven't done them just yet. ## Context for reviewers The secrets stuff is like 90% of this diff, sorry about that 🙏🏼
- Loading branch information
1 parent
d227b92
commit f5862aa
Showing
6 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bucket = "simpler-grants-gov-315341936575-us-east-1-tf" | ||
key = "infra/analytics/metabase/prod.tfstate" | ||
dynamodb_table = "simpler-grants-gov-315341936575-us-east-1-tf-state-locks" | ||
region = "us-east-1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module "secrets" { | ||
for_each = local.service_config.secrets | ||
|
||
source = "../../modules/secret" | ||
|
||
# When generating secrets and storing them in parameter store, append the | ||
# terraform workspace to the secret store path if the environment is temporary | ||
# to avoid conflicts with existing environments. | ||
# Don't do this for secrets that are managed manually since the temporary | ||
# environments will need to share those secrets. | ||
secret_store_name = (each.value.manage_method == "generated" && local.is_temporary ? | ||
"${each.value.secret_store_name}/${terraform.workspace}" : | ||
each.value.secret_store_name | ||
) | ||
manage_method = each.value.manage_method | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
bucket = "simpler-grants-gov-315341936575-us-east-1-tf" | ||
key = "infra/analytics/metabase/staging.tfstate" | ||
dynamodb_table = "simpler-grants-gov-315341936575-us-east-1-tf-state-locks" | ||
region = "us-east-1" |