How do you set SSE-S3 or SSE-KMS encryption on S3 buckets using Cloud Formation Template?

前端 未结 3 934
耶瑟儿~
耶瑟儿~ 2020-12-16 10:20

I\'m trying to use a CloudFormation Template to spin up an S3 Bucket in AWS. One of the requirements for this project is that the bucket be encrypted in place. I\'ve been

3条回答
  •  一整个雨季
    2020-12-16 11:19

    If you have a specific KMS key use the following

      ConfigBucket:
        Type: AWS::S3::Bucket
        Properties:
          BucketName: "mytestbucketwithkmsencryptionkey"
          AccessControl: PublicRead
          BucketEncryption: 
            ServerSideEncryptionConfiguration: 
            - ServerSideEncryptionByDefault:
                SSEAlgorithm: aws:kms
                KMSMasterKeyID: "YOUR KMS KEY ARN"     
    

提交回复
热议问题