-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
Comments
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. |
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! |
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. |
If you pass :use_iam_profile => true then fog should fetch credentials from the instance metadata for you |
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! |
Thanks for the update! On Sun, Feb 22, 2015 at 3:26 PM, Fabian Jahr notifications@github.com
|
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!
The text was updated successfully, but these errors were encountered: