Skip to content

Commit

Permalink
Updated KMS
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli001 committed Jul 19, 2024
1 parent 88b1306 commit ad87880
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iam_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ resource "aws_iam_policy" "rhel_x86_codepipeline_permissions" {
"kms:GenerateDataKey",
"kms:DescribeKey"
]
Resource = "arn:aws:kms:us-gov-west-1:229685449397:key/your-key-id"
Resource = "arn:aws-us-gov:kms:us-gov-west-1:229685449397:key/your-key-id"
},
{
Effect = "Allow"
Action = [
"iam:PassRole"
]
Resource = "arn:aws:iam::229685449397:role/rhel-x86-image-pipeline-demo-codepipeline-role"
Resource = "arn:aws-us-gov:iam::229685449397:role/rhel-x86-image-pipeline-demo-codepipeline-role"
}
]
})
Expand All @@ -83,4 +83,4 @@ resource "aws_iam_policy" "rhel_x86_codepipeline_permissions" {
resource "aws_iam_role_policy_attachment" "rhel_x86_codepipeline_role_attachment" {
role = "rhel-x86-image-pipeline-demo-codepipeline-role"
policy_arn = aws_iam_policy.rhel_x86_codepipeline_permissions.arn
}
}

0 comments on commit ad87880

Please sign in to comment.