Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli001 committed Jul 23, 2024
1 parent 5d95db7 commit a110047
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions kms.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resource "aws_kms_key" "rhel_x86_codepipeline_key" {
description = "KMS key for RHEL x86 CodePipeline"

policy = <<EOF
{
"Version": "2012-10-17",
Expand Down
10 changes: 10 additions & 0 deletions s3.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
resource "aws_s3_bucket" "rhel_x86_codepipeline_bucket" {
bucket = "rhel-x86-codepipeline-bucket-${random_string.suffix.result}"
force_destroy = true

server_side_encryption_configuration {
rule {
apply_server_side_encryption_by_default {
sse_algorithm = "aws:kms"
kms_master_key_id = aws_kms_key.rhel_x86_codepipeline_key.arn
}
}
}
}

resource "random_string" "suffix" {
Expand Down

0 comments on commit a110047

Please sign in to comment.