Skip to content

Commit

Permalink
Defined permissionsboundary for resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jannyg committed Nov 22, 2024
1 parent 1b6d91a commit a6a46d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions terraform-modules/cur-setup-source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ data "aws_iam_policy_document" "replication" {
}

resource "aws_iam_role" "replication" {
name_prefix = "${var.resource_prefix}-replication"
path = "/${var.resource_prefix}/"
assume_role_policy = data.aws_iam_policy_document.s3_assume_role.json
name_prefix = "${var.resource_prefix}-replication"
path = "/${var.resource_prefix}/"
permissions_boundary = var.permissionsboundary_arn
assume_role_policy = data.aws_iam_policy_document.s3_assume_role.json
inline_policy {
name = "S3Replication"
policy = data.aws_iam_policy_document.replication.json
Expand Down

0 comments on commit a6a46d8

Please sign in to comment.