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

MLPAB-2292 - document parameter locations #1704

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions docs/architecture/decisions/0006-parameter-locations-in-ssm.md
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
Loading