Skip to content

Commit

Permalink
Updated s3
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli001 committed Jul 30, 2024
1 parent f178cb0 commit cf239c5
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions s3.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# Define the S3 bucket
resource "aws_s3_bucket" "rhel_x86_codepipeline_bucket" {
bucket = "rhel-x86-codepipeline-bucket"
acl = "private"

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
}
}
}


tags = {
Name = "RHEL x86 CodePipeline Bucket"
}
}

# Define the server-side encryption configuration for the S3 bucket
resource "aws_s3_bucket_server_side_encryption_configuration" "rhel_x86_codepipeline_bucket_sse" {
bucket = aws_s3_bucket.rhel_x86_codepipeline_bucket.bucket

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

0 comments on commit cf239c5

Please sign in to comment.