Skip to content

Commit

Permalink
Move profiles_enabled logic out of providers.tf and into `iam-rol…
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored Jun 5, 2023
1 parent 7755f32 commit d542bed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d542bed

Please sign in to comment.