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

Fail silently when account validation fails while from instance profile #3001

Merged
merged 2 commits into from Sep 8, 2015

Conversation

Projects
None yet
5 participants
@sarguru
Contributor

sarguru commented Aug 14, 2015

As far as I know, cross account IAM instance profiles are not possible, so when iam.GetUser() fails for non-User credentials , its better that it fails silently and prints the warning instead of halting the entire run.
This is similar to #2959. If there are better ways of handling (or if its better to explicitly specify) this that would be great aws well. Thanks !

fail silently when users have forbiddenaccount/allowedaccount configu…
…red while authenticating via iam profile instance
@bobtfish

This comment has been minimized.

Show comment
Hide comment
@bobtfish

bobtfish Aug 14, 2015

Contributor

👍 we definitely want this to make instance profiles work correctly

Contributor

bobtfish commented Aug 14, 2015

👍 we definitely want this to make instance profiles work correctly

@apparentlymart

This comment has been minimized.

Show comment
Hide comment
@apparentlymart

apparentlymart Aug 16, 2015

Contributor

The logic seems reasonable. 👍

It'd be awesome if you could run your code through go fmt to make it conform to the code style used elsewhere in Terraform.

Contributor

apparentlymart commented Aug 16, 2015

The logic seems reasonable. 👍

It'd be awesome if you could run your code through go fmt to make it conform to the code style used elsewhere in Terraform.

@sarguru

This comment has been minimized.

Show comment
Hide comment
@sarguru

sarguru Aug 17, 2015

Contributor

thanks @apparentlymart . Done 👍

Contributor

sarguru commented Aug 17, 2015

thanks @apparentlymart . Done 👍

@phinze

This comment has been minimized.

Show comment
Hide comment
@phinze

phinze Sep 8, 2015

Member

LGTM

Member

phinze commented Sep 8, 2015

LGTM

phinze added a commit that referenced this pull request Sep 8, 2015

Merge pull request #3001 from sarguru/iam_profile_validation
Fail silently when account validation fails while from instance profile

@phinze phinze merged commit 8559b02 into hashicorp:master Sep 8, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment