Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Does use_iam_profile work? #491

Open
ryanschmidt opened this issue Nov 29, 2016 · 3 comments
Open

Does use_iam_profile work? #491

ryanschmidt opened this issue Nov 29, 2016 · 3 comments

Comments

@ryanschmidt
Copy link

Is anyone using use_iam_profile successfully? I've not been able to get it to work as I would expect and some searching turned up some threads that make me think that it may not actually work.

Does fog-aws actually require secret_access_key & access_key_id? If so, I'm not sure how vagrant-aws can work considering when use_iam_profle is set to true we don't send those credentials.

Any leads would be appreciated!

@memoryleak
Copy link

memoryleak commented Jul 19, 2017

This one just bit me as well, trying to use AWS provider on an AWS hosted instance. Even though the EC2 instance has the proper role and permissions, it asks me to provide keys.

@masstamike
Copy link

I'm getting the following error when attempting to use an attached role:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

AWS Provider:
* One or more of the needed AWS credentials are missing. No environment variables
are set nor profile 'default' exists at '/home/ec2-user/.aws/'

@ruthgrace
Copy link

ruthgrace commented Aug 21, 2018

I was able to get around the use_iam_profile bug by adding a dummy secret and key to my Vagrantfile:

    aws.use_iam_profile = true
    aws.access_key_id = "dummy_access_key"
    aws.secret_access_key = "dummy_secret_key"

Will do this until #525 is merged.

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

No branches or pull requests

4 participants