Answers for "terraform s3 create folder"

0

terraform s3 create folder

resource "aws_s3_bucket_object" "s3_folder" {
    provider = aws
    bucket   = "${module.s3_bucket.bucket_id}"
    acl      = "private"
    key      =  "${var.folder_name}/"
    content_type = "application/x-directory"
    //  (Optional) Specifies the AWS KMS Key ARN to use for object encryption. This value is a fully qualified ARN of the KMS Key. 
    kms_key_id = "${var.kms_key_arn}"
}
Posted by: Guest on January-20-2021

Browse Popular Code Answers by Language