mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Fix s3 bucket "installers" has deprecated argument (#8051)
This commit is contained in:
parent
aae824804b
commit
a864c52e8f
1 changed files with 11 additions and 8 deletions
|
|
@ -1,13 +1,5 @@
|
|||
resource "aws_s3_bucket" "installers" {
|
||||
bucket = "${var.prefix}-installers"
|
||||
server_side_encryption_configuration {
|
||||
rule {
|
||||
apply_server_side_encryption_by_default {
|
||||
kms_master_key_id = var.kms_key.arn
|
||||
sse_algorithm = "aws:kms"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_s3_bucket_public_access_block" "installers" {
|
||||
|
|
@ -17,6 +9,17 @@ resource "aws_s3_bucket_public_access_block" "installers" {
|
|||
block_public_policy = true
|
||||
}
|
||||
|
||||
resource "aws_s3_bucket_server_side_encryption_configuration" "installers" {
|
||||
bucket = aws_s3_bucket.installers.id
|
||||
|
||||
rule {
|
||||
apply_server_side_encryption_by_default {
|
||||
kms_master_key_id = var.kms_key.arn
|
||||
sse_algorithm = "aws:kms"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output "installer_bucket" {
|
||||
value = aws_s3_bucket.installers
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue