Skip to content

Commit

Permalink
feat: also support bucket_key_enabled to bucket_object
Browse files Browse the repository at this point in the history
  • Loading branch information
kumashun8 committed Apr 16, 2021
1 parent 7d81d4b commit 2aab7ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/object/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ resource "aws_s3_bucket_object" "this" {

server_side_encryption = var.server_side_encryption
kms_key_id = var.kms_key_id
bucket_key_enabled = var.bucket_key_enabled

object_lock_legal_hold_status = try(tobool(var.object_lock_legal_hold_status) ? "ON" : upper(var.object_lock_legal_hold_status), var.object_lock_legal_hold_status)
object_lock_mode = try(upper(var.object_lock_mode), var.object_lock_mode)
Expand Down
6 changes: 6 additions & 0 deletions modules/object/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ variable "kms_key_id" {
default = null
}

variable "bucket_key_enabled" {
description = "Whether or not to use Amazon S3 Bucket Keys for SSE-KMS."
type = bool
default = null
}

variable "metadata" {
description = "A map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API)."
type = map(string)
Expand Down

0 comments on commit 2aab7ac

Please sign in to comment.