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

No need to supply AWS_* configuration variables when running on EC2 #296

Open
jcmuller opened this issue Mar 3, 2015 · 2 comments
Open

Comments

@jcmuller
Copy link

jcmuller commented Mar 3, 2015

Using the aws-sdk gem, you don't need to set the AWS_* environment variables since the IAM roles can be set at the instance level for your S3 buckets. Is there a way to replicate this with AssetSync?

@gmcnaughton
Copy link

@jcmuller #294 suggests that there is an aws_iam_roles config option that will tell asset_sync to look up credentials from the instance's role. I haven't tried it yet, but might be worth a look!

@oskarpearson
Copy link

This can be resolved.

aws_iam_roles does work as expected in my testing.

Outstanding PR https://github.com/rumblelabs/asset_sync/pull/307/files would add this to the documentation.

From our configs:

AssetSync.configure do |config|
    ...
    config.aws_iam_roles = true
end

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

3 participants