Skip to content

Commit

Permalink
add test secretsmanager secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Apr 18, 2024
1 parent 281e6f2 commit 9c6cf3e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/environments/oasys-national-reporting/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ locals {

baseline_sns_topics = {}
baseline_ssm_parameters = {}
baseline_secretsmanager_secrets = {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ locals {
)
}

database_secretsmanager_secrets = {
secrets = {
passwords = { description = "database passwords" }
}
}

defaults_ec2 = {
config = merge(module.baseline_presets.ec2_instance.config.default, {
ami_owner = "self"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ locals {

# baseline config
test_config = {

baseline_secretsmanager_secrets = {
"/oracle/database/T3ONRAU" = local.database_secretsmanager_secrets
"/oracle/database/T3ONRBDS" = local.database_secretsmanager_secrets
"/oracle/database/T3ONRSYS" = local.database_secretsmanager_secrets
}

# baseline_ec2_instances = {
# test-db = merge(local.defaults_onr_db_ec2 ,{
# config = merge(local.defaults_onr_db_ec2.config, {
Expand Down
5 changes: 5 additions & 0 deletions terraform/environments/oasys-national-reporting/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ module "baseline" {
lookup(local.baseline_environment_config, "baseline_s3_buckets", {})
)

secretsmanager_secrets = merge(
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 9c6cf3e

Please sign in to comment.