AWS s3 module and IAM-role-based access control

83 views
Skip to first unread message

Markus Klems

unread,
Jan 27, 2015, 12:15:57 PM1/27/15
to ansible...@googlegroups.com
Hi,

it seems like the s3 module (http://docs.ansible.com/s3_module.html) does not support a "security_token" parameter (like the ec2 module http://docs.ansible.com/ec2_module.html). This would be desirable, for example, for the following use case:

1. Launch an EC2 instance with IAM role that gives access to s3 bucket
2. Download software packages or other files from s3 bucket that is restricted to the IAM role onto the EC2 instance.

Right now it seems like this is not possible because the security_token parameter cannot be specified (or only with a workaround).

My questions:
a) Am I missing something or misunderstanding the concept of IAM role based access to s3?
b) If not, is it possible to accomplish steps 1 and 2 as described above with the ansible s3 module?
c) If it is not possible, can you add a security_token parameter to the s3 module?

Thanks a lot,

Markus

Ankit Jindal

unread,
Jun 29, 2015, 9:24:53 AM6/29/15
to ansible...@googlegroups.com
I have successfully setup ec2 instance on aws with database but I am unable to connect aws s3 instance with ec2 instance.


Can you please help me out in this??
Reply all
Reply to author
Forward
0 new messages