botocore waiters-like handler #295
Labels
bug
Addresses a defect in current functionality.
question
A question about existing functionality; most questions are re-routed to discuss.hashicorp.com.
upstream-terraform
Addresses functionality related to the Terraform core binary.
This issue was originally opened by @leventyalcin as hashicorp/terraform#9164. It was migrated here as part of the provider split. The original body of the issue is below.
Hi there,
As you may know, there are a couple of issues with creating some sort of resources on AWS.
For instance, If you are creating an IAM role and if you want to assign that role to some resources during the same terraform apply, it fails and it runs at the second run.
It's ok and it is the nature of IAM which is explained in here
So, to be able to automate or control the stuff properly AWS and boto implemented WaitCondition&WaitConditionHandle and Waiters into their stuff.
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitcondition.html
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-waitconditionhandle.html
http://botocore.readthedocs.io/en/latest/reference/services/iam.html#waiters
My proposal is having some wait property on the resources and linking any other resources by
depends_on
. With that way, we can create and use that kind of resources in same terraform apply.It is also a problem if you are creating role(s) and try to associate to a CMK.
References
#6136
#2349
#5862
#5863
The text was updated successfully, but these errors were encountered: