laurilehmijoki / s3_website

Manage an S3 website: sync, deliver via CloudFront, benefit from advanced S3 website features.
Other
2.24k stars 186 forks source link

Support for temporary credentials from ec2 metadata #143

Closed cast closed 9 years ago

cast commented 9 years ago

You can get temporary security credentials by going to http://169.254.169.254/latest/meta-data/iam/security-credentials/{role-name} on an ec2 instance. Role name you get from http://169.254.169.254/latest/meta-data/iam/info.

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html

The token needs to be sent as well to allow a successful request with the temporary security credentials.

Perhaps this token could be added as a config/cli attribute which in turn can be added to the credentials when sending requests.

laurilehmijoki commented 9 years ago

Closing as inactive. Please reopen if needed.