Skip to content

Commit

Permalink
Merge pull request #5953 from ministryofjustice/DSOS-2691/add-ec2-use…
Browse files Browse the repository at this point in the history
…r-secret

DSO-2691:  add ec2-user secret to DSO apps
  • Loading branch information
crvgilbertson authored May 3, 2024
2 parents c9a72d2 + 15504f9 commit 9693b05
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/environments/corporate-staff-rostering/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ module "baseline" {
)

secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.baseline_environment_config, "baseline_secretsmanager_secrets", {})
)
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/hmpps-domain-services/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ module "baseline" {
)

secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.baseline_environment_config, "baseline_secretsmanager_secrets", {})
)
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/hmpps-oem/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ module "baseline" {
)

secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.baseline_environment_config, "baseline_secretsmanager_secrets", {})
)
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/nomis-combined-reporting/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module "baseline" {
lookup(local.environment_config, "baseline_s3_buckets", {}),
)
secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.environment_config, "baseline_secretsmanager_secrets", {})
)
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/nomis-data-hub/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ module "baseline" {
)

secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.baseline_environment_config, "baseline_secretsmanager_secrets", {})
)
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/oasys-national-reporting/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ module "baseline" {
)

secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.baseline_environment_config, "baseline_secretsmanager_secrets", {})
)
Expand Down
1 change: 1 addition & 0 deletions terraform/environments/oasys/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ module "baseline" {
lookup(local.environment_config, "baseline_s3_buckets", {})
)
secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.environment_config, "baseline_secretsmanager_secrets", {})
)
Expand Down
2 changes: 2 additions & 0 deletions terraform/environments/planetfm/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ locals {
}
}

baseline_secretsmanager_secrets = {}

baseline_security_groups = {
loadbalancer = local.security_groups.loadbalancer
web = local.security_groups.web
Expand Down
6 changes: 6 additions & 0 deletions terraform/environments/planetfm/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ module "baseline" {
lookup(local.baseline_environment_config, "baseline_s3_buckets", {})
)

secretsmanager_secrets = merge(
module.baseline_presets.secretsmanager_secrets,
local.baseline_secretsmanager_secrets,
lookup(local.baseline_environment_config, "baseline_secretsmanager_secrets", {})
)

security_groups = merge(
local.baseline_security_groups,
lookup(local.baseline_environment_config, "baseline_security_groups", {})
Expand Down

0 comments on commit 9693b05

Please sign in to comment.