Skip to content

Commit

Permalink
fix permission denied while uploading artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq committed Dec 9, 2023
1 parent 964fd4b commit 2c4629a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions getting-started/cicd/codebuild/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ data "aws_iam_policy_document" "demo_codebuild" {
"${aws_s3_bucket.demo_aws_codebuild_bucket_input.arn}/*",
]
}

statement {
effect = "Allow"
actions = ["s3:*"]
resources = [
aws_s3_bucket.demo_aws_codebuild_bucket_output.arn,
"${aws_s3_bucket.demo_aws_codebuild_bucket_output.arn}/*",
]
}
}

resource "aws_iam_role_policy" "demo_codebuild" {
Expand Down

0 comments on commit 2c4629a

Please sign in to comment.