📜  terraform s3 创建文件夹 - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:21.783000             🧑  作者: Mango

代码示例1
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}"
}