Skip to content

Commit

Permalink
Stopping the creation of an existing kms key
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli001 committed Jul 23, 2024
1 parent dd7e7d6 commit e482b31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion iam_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,5 @@ resource "aws_iam_policy" "rhel_x86_ec2_permissions" {
resource "aws_iam_role_policy_attachment" "rhel_x86_ec2_role_attachment" {
role = aws_iam_role.rhel_x86_ec2_role.name
policy_arn = aws_iam_policy.rhel_x86_ec2_permissions.arn
}
}

3 changes: 1 addition & 2 deletions kms.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
resource "aws_kms_key" "rhel_x86_codepipeline_key" {
description = "KMS key for RHEL x86 CodePipeline"
key_id = "ba7dabdd-0f5a-44aa-9a90-a36c246a29a4" # Static KMS Key ID
policy = <<EOF
{
"Version": "2012-10-17",
Expand Down Expand Up @@ -40,4 +39,4 @@ EOF
resource "aws_kms_alias" "rhel_x86_codepipeline_alias" {
name = "alias/rhel-x86-codepipeline-key"
target_key_id = "ba7dabdd-0f5a-44aa-9a90-a36c246a29a4" # Static KMS Key ID
}
}

0 comments on commit e482b31

Please sign in to comment.