This website uses cookies to ensure you get the best experience.
Learn more.
An application on EC2 reads from one S3 prefix. It currently uses a long-lived IAM user access key in a local configuration file. Operations wants temporary credentials and least-privilege access without manual key rotation on every instance. What should it do?
Published
- Make the S3 prefix public and remove all authentication from the application.
- Use the account root access key because it does not need an IAM role.
- Embed the same access key in the AMI so all replacement instances share it.
- Attach an IAM role through an instance profile with access to the required prefix, use the SDK credential provider chain, and remove the old keys.
Comments — 0
Sign in to comment