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

provider/aws: Retry association of IAM Role & instance profile #7938

Merged
merged 1 commit into from Aug 5, 2016
Merged

provider/aws: Retry association of IAM Role & instance profile #7938

merged 1 commit into from Aug 5, 2016

Conversation

radeksimko
Copy link
Member

This is to fix #2660 which reappears from time to time.

It is obviously difficult to reproduce this issue as it's caused by IAM eventual consistency, but here's a snippet from a debug log from today (0.7.0): https://gist.github.com/radeksimko/1e0533e6c998c55fbb69da9851fcb779
and here's the config used: https://gist.github.com/radeksimko/3891ad1e3b3d295238b04a55dd869c09

Side effects

Theoretically this may cause small delays for users who are trying to launch an EC2 instance w/ IAM instance profile that actually has no IAM roles assigned to it. Users that use Terraform to manage instance profiles should never run into such situations though as aws_iam_instance_profile.roles is required field.

@stack72
Copy link
Contributor

stack72 commented Aug 5, 2016

LGTM! Nice one @radeksimko :)

@stack72 stack72 merged commit ebf6e51 into hashicorp:master Aug 5, 2016
@radeksimko radeksimko deleted the b-aws-instance-role-retry branch August 5, 2016 06:25
@CpuID
Copy link
Contributor

CpuID commented Aug 12, 2016

❤️

@ghost
Copy link

ghost commented Apr 23, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Instance Profile has no associated IAM Roles for some instances
3 participants