Skip to content

Commit

Permalink
Use role names, not ARNs
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-buchan committed Dec 20, 2024
1 parent 206f100 commit ce8eb93
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ module "oracle_db_shared" {
tags = local.tags
public_keys = local.db_public_key_data.keys[var.account_info.mp_environment]
instance_roles = concat(
each.key == "mis-db" ? [for i in range(1,try(var.mis_db_config.instance_count, 1) + 1): "arn:aws:iam::${var.account_info.id}:role/instance-role-delius-mis-${var.env_name}-${each.key}-${i}"] : [],
each.key == "boe-db" ? [for i in range(1,try(var.boe_db_config.instance_count, 1) + 1): "arn:aws:iam::${var.account_info.id}:role/instance-role-delius-mis-${var.env_name}-${each.key}-${i}"] : [],
each.key == "dsd-db" ? [for i in range(1,try(var.dsd_db_config.instance_count, 1) + 1): "arn:aws:iam::${var.account_info.id}:role/instance-role-delius-mis-${var.env_name}-${each.key}-${i}"] : []
each.key == "mis-db" ? [for i in range(1,try(var.mis_db_config.instance_count, 1) + 1): "instance-role-delius-mis-${var.env_name}-${each.key}-${i}"] : [],
each.key == "boe-db" ? [for i in range(1,try(var.boe_db_config.instance_count, 1) + 1): "instance-role-delius-mis-${var.env_name}-${each.key}-${i}"] : [],
each.key == "dsd-db" ? [for i in range(1,try(var.dsd_db_config.instance_count, 1) + 1): "instance-role-delius-mis-${var.env_name}-${each.key}-${i}"] : []
)

db_suffix = each.key
Expand Down

0 comments on commit ce8eb93

Please sign in to comment.