EC2 instance role gets 'Unknown' error when attempting aws s3 cp KMS encrypted file
问题 I've got an ASG that assigns an IAM Role to each of the instances that join it. Therefore, each instance has the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables baked-in, which will be used upon instantiation to download and decrypt credentials that are stored in an S3 bucket and encrypted using KMS keys. So I'll have the following components: An S3 bucket called top-secret.myapp.com All objects in this bucket are encrypted using a KMS key called My-KMS-Key An IAM instance