This repository was archived by the owner on Feb 10, 2026. It is now read-only.
Repository navigation
v0.169.0
Update `account-map` component RB (@nitrocode) (#363)
what
Latest account-map
- tenant changes
- Added
profiles_enabled
why
- Allowing tenants using the latest context.tf
- Allow switching between profiles and roles depending on what is set in the
account-mapcatalog
example providers.tf
provider "aws" {
region = var.region
profile = module.iam_roles.profiles_enabled ? coalesce(var.import_profile_name, module.iam_roles.terraform_profile_name) : null
dynamic "assume_role" {
for_each = module.iam_roles.profiles_enabled ? [] : ["role"]
content {
role_arn = coalesce(var.import_role_arn, module.iam_roles.terraform_role_arn)
}
}
}
module "iam_roles" {
source = "../account-map/modules/iam-roles"
context = module.this.context
}
variable "import_profile_name" {
type = string
default = null
description = "AWS Profile name to use when importing a resource"
}
variable "import_role_arn" {
type = string
default = null
description = "IAM Role ARN to use when importing a resource"
}references
- N/A