Skip to content

Commit

Permalink
fix: DBTP-1534 Add S3MigrationRole to the resources allowed to add po…
Browse files Browse the repository at this point in the history
…licies and roles (#283)
  • Loading branch information
antroy-madetech authored Nov 14, 2024
1 parent d32d45e commit 0a4130e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions environment-pipelines/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ data "aws_iam_policy_document" "iam" {
resources = [
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/*-${var.application}-*-conduitEcsTask",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.application}-${statement.value.name}-CFNExecutionRole",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.application}-${statement.value.name}-EnvManagerRole"
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.application}-${statement.value.name}-EnvManagerRole",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/*-S3MigrationRole",
]
}
}
Expand All @@ -875,7 +876,9 @@ data "aws_iam_policy_document" "iam" {
actions = [
"iam:UpdateAssumeRolePolicy"
]
resources = [for environment in local.environment_config : "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/*-S3MigrationRole"]
resources = [
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/*-S3MigrationRole"
]
}

statement {
Expand Down

0 comments on commit 0a4130e

Please sign in to comment.