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: IAM Instance Profile Waiter #4235

Closed

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Dec 9, 2015

May fix #4230: Adding the aws-go-sdk Waiter for IAM Instance Profile

make testacc TEST=./builtin/providers/aws TESTARGS='-run=AWSIAMInstanceProfile' 2>~/tf.log
go generate ./...
TF_ACC=1 go test ./builtin/providers/aws -v -run=AWSIAMInstanceProfile -timeout 90m
=== RUN   TestAccAWSIAMInstanceProfile_basic
--- PASS: TestAccAWSIAMInstanceProfile_basic (4.87s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    4.885s

@stack72
Copy link
Contributor Author

stack72 commented Dec 9, 2015

@catsby / @phinze / @jen20 I'd like your input on this. Basically I could have added the waiter after the initial create and before the roles. But I think that pushing it until the end of the Create (after roles are set) make it more useful

Thoughts?

This should help stop hacks on IAM profiles using null_provisioners

@catsby
Copy link
Contributor

catsby commented Dec 9, 2015

I'm initially hesitant on using the SDK waiters as is, simply because at time of writing they offer no hook for any logging. Any resources that take considerable time (like RDS) just appear to hang while waiting...

For IAM though, it's probably barely noticeable. I'll check this out but at first glance it looks good. I did post a question in 4230 though. There is code in aws_instance that should account for this. I'm fine removing that polling code if this code here does a better job, but maybe they aren't mutually exclusive. We you able to reproduce the error(s) in #4230?

@catsby catsby added the waiting-response An issue/pull request is waiting for a response from the community label Dec 9, 2015
@stack72
Copy link
Contributor Author

stack72 commented Dec 9, 2015

@catsby I cannot reproduce #4230 TBH - I have used IAM Instance Profiles and Instances for a while for some small based instances and they seem to work ok. I am happy to close this PR for now :)

@catsby
Copy link
Contributor

catsby commented Dec 11, 2015

@stack72 #4230 was closed by the author as they can't reproduce at this time. Do you think we should still try to include this?

@stack72
Copy link
Contributor Author

stack72 commented Dec 11, 2015

I would say no. Let's not include any of the waiters yet. You pointed out
code in AWS_instance that checks for this.

Let's close this for now
On 11 Dec 2015 10:20 pm, "Clint" notifications@github.com wrote:

@stack72 https://github.com/stack72 #4230
#4230 was closed by the
author as they can't reproduce at this time. Do you think we should still
try to include this?


Reply to this email directly or view it on GitHub
#4235 (comment).

@stack72 stack72 closed this Dec 11, 2015
@catsby
Copy link
Contributor

catsby commented Dec 11, 2015

@stack72 thanks!

@mrjefftang mrjefftang mentioned this pull request Apr 6, 2016
3 tasks
@stack72 stack72 deleted the f-aws-instance-profile-waiter branch April 6, 2016 20:06
@ghost
Copy link

ghost commented Apr 26, 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 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement provider/aws waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TerraForm does not set Instance Profile ARN for IAM roles
3 participants