Skip to content

Commit

Permalink
PLAT-9026 managed_policy_arns deprecated (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelhar authored Dec 10, 2024
1 parent 2569f6d commit a0b83e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/iam-bootstrap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ No modules.
|------|------|
| [aws_iam_policy.deployment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy) | resource |
| [aws_iam_role.deployment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
| [aws_iam_role_policy_attachments_exclusive.deployment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachments_exclusive) | resource |
| [aws_caller_identity.admin](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_partition.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/partition) | data source |

Expand Down
8 changes: 6 additions & 2 deletions modules/iam-bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ resource "aws_iam_role" "deployment" {
]
})

managed_policy_arns = aws_iam_policy.deployment[*].arn

max_session_duration = var.max_session_duration
}


resource "aws_iam_role_policy_attachments_exclusive" "deployment" {
role_name = aws_iam_role.deployment.name
policy_arns = aws_iam_policy.deployment[*].arn
}

0 comments on commit a0b83e7

Please sign in to comment.