-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88dddf9
commit 7f87dd6
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
docs/architecture/decisions/0006-parameter-locations-in-ssm.md
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,48 @@ | ||
# Parameters locations in SSM Parameter Store | ||
|
||
Date: 2024-06-19 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
Over time, AWS SSM parameters have been created in multiple locations to make them available for use across regions, accounts and services. Knowing where to go to access or if required modify parameter values isn't obvious. | ||
|
||
Presently we have parameters in the following locations; | ||
|
||
### Managed by MRLPA | ||
|
||
Management Account - us-east-1 region | ||
|
||
```text | ||
/modernising-lpa/container-version/${local.environment_name} | ||
/modernising-lpa/dns-target-region/${local.environment_name} | ||
/modernising-lpa/additional-allowed-ingress-cidrs/${data.aws_default_tags.global.tags.account-name} | ||
``` | ||
|
||
MRLPA Account (development, preproduction or production) - deployed region (eg. eu-west-1, eu-west-2) | ||
|
||
```text | ||
/modernising-lpa/s3-batch-configuration/${data.aws_default_tags.current.tags.environment-name}/s3_batch_configuration | ||
``` | ||
|
||
### Used by MRLPA - Managed by Sirius | ||
|
||
Management Account - deployed region (eg. eu-west-1, eu-west-2) | ||
|
||
```text | ||
/modernising-lpa/reduced_fees_uploads_bucket_kms_key_arn/${var.reduced_fees.target_environment}/${data.aws_region.current.name} | ||
/modernising-lpa/reduced_fees_uploads_bucket_arn/${var.reduced_fees.target_environment}/${data.aws_region.current.name} | ||
``` | ||
|
||
We can make it easier to work with parameters by rationalising the locations and defining how we choose where to locate them. | ||
|
||
## Decision | ||
|
||
- Use global region (us-east-1) for parameters used cross regions (eg. container version used in eu-west-1 and eu-west-2) | ||
- Use management account for parameters used across services (eg. Sirius, github actions) | ||
- Use local account (developement, preproduction, production) and local region for other use cases | ||
|
||
## Consequences |