-
Notifications
You must be signed in to change notification settings - Fork 107
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
Configure with IAM Role #163
Comments
I don't have any context beyond the discussion in #53. That error isn't coming from carrierwave-aws directly, it would be bubbling up from aws-sdk in some way. |
I also want to use IAM profile attached to EC2 instance for carrierwave usage. I would like to know what is the correct configuration to leave out the credentils in the carrierwave initialiers... I am guessing that the following should be correct and it would fetch the credentials automatically from the attached IAM role to instance.
However, I think it did not work well and I kept getting the timeout when trying to upload a small file. IAM role attached to the instance is right because the rest of the functionality implemented through fog-aws works well. Also, Please advice and suggest at the earliest. @mavinalim Thank you! |
@nitishgangal89 did you find the proper solution? I have a similar situation. |
In case it's helpful, in my case I decided to add Aws.config.update(credentials: Aws::InstanceProfileCredentials.new) to my AWS initialization code, and CarrierWave seems to pick that up. You could try to rely on the automatic credential lookup mechanisms but to me it seemed more deterministic to be explicit about it. (If you have different credential mechanisms in different environments it might be a good idea to make it conditional but still explicit.) |
First, I just wanted to say I have read the topic in #53. However, the person says in order for IAM Role to work, you just need to "leave it out" for aws_access_key and aws_access_secret. I have tried both commenting out the two lines:
and
I get this error for both options.
I can confirm that my IAM role is working fine, I tested with aws-sdk. It just seems like carrierwave is not liking the way I set up. Please help if anyone can, Thank you!
The text was updated successfully, but these errors were encountered: