简体   繁体   中英

AWS KMS ARN a secret?

I am enabling the SSE KMS encryption on my S3 buckets. I am doing this by adding the BucketEncryption property of S3 bucket in my Cloudformation template.

What is the best practice?

This property asks KMS ARN as a value. I am using AWS manages KMS key. Is it safe to hardcode that ARN in the Cloudformation template?

Generally its fine to hard-code the value if it is constant. But if you want to redeploy your template in different regions or accounts, it would be better to parametrize the ARN to make your template more portable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM