Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

v0.169.0

Choose a tag to compare

@cloudpossebot cloudpossebot released this 19 Oct 19:23
acbb6c5
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-map catalog
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