Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Credentials required when using IAM Profile #44

Closed
fjahr opened this issue Jan 28, 2015 · 6 comments
Closed

AWS Credentials required when using IAM Profile #44

fjahr opened this issue Jan 28, 2015 · 6 comments

Comments

@fjahr
Copy link

fjahr commented Jan 28, 2015

Hi,

i am trying to access S3 from an EC2 Instance with Fog using only the IAM Profile but not the AWS Credentials (secret_key_id and secret_access_key are not available in the environment). However the credentials seem to be required even when using IAM. Should this not be possible? I expected that Fog would fetch the credentials for me when using IAM.

Thanks for your support!

@lanej
Copy link
Member

lanej commented Jan 28, 2015

you should get a set of keys when you generate your IAM profile, and that's what you should reference when you instantiate the S3 service.

@fjahr
Copy link
Author

fjahr commented Jan 29, 2015

Could you hint me at documentation for that? All examples of the usage of Fog::AWS::IAM Modules start by being initialized WITH AWS credentials but I can't find an example for retrieving the temporary keys without having keys already.

Thanks a lot!

@geemus
Copy link
Member

geemus commented Jan 29, 2015

In my experience with IAM, you basically use it to give you other keys of equal or lesser privilege (which you then actually use for whatever operation you intend). That said, you generally need some keys to start down that path. I might be missing something in this particular case/context though.

@fcheung
Copy link
Contributor

fcheung commented Feb 1, 2015

If you pass :use_iam_profile => true then fog should fetch credentials from the instance metadata for you

@fjahr
Copy link
Author

fjahr commented Feb 22, 2015

Sorry for not responding anymore. I was assigned to a different project and can't look into the issue any further at the moment. I will try to get back to it when I have time. Thanks for your support anyway!

@fjahr fjahr closed this as completed Feb 22, 2015
@geemus
Copy link
Member

geemus commented Feb 23, 2015

Thanks for the update!

On Sun, Feb 22, 2015 at 3:26 PM, Fabian Jahr notifications@github.com
wrote:

Closed #44 #44.

Reply to this email directly or view it on GitHub
#44 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants