From d542bedc4df6450465a6481564a402a17bc3423f Mon Sep 17 00:00:00 2001 From: Nuru Date: Sun, 4 Jun 2023 18:59:25 -0700 Subject: [PATCH] Move `profiles_enabled` logic out of `providers.tf` and into `iam-roles` (https://github.com/cloudposse/terraform-aws-components/pull/702) --- src/providers.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/src/providers.tf b/src/providers.tf index efa9ede..08ee01b 100644 --- a/src/providers.tf +++ b/src/providers.tf @@ -2,6 +2,7 @@ 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 {