Skip to content

Commit

Permalink
Merge pull request #82 from Cox-Automotive/develop
Browse files Browse the repository at this point in the history
Merge lastest changes from develop to master
  • Loading branch information
webbbarker authored Jun 29, 2020
2 parents 5d7ccb2 + c8b387d commit 8569dc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resource_alks_iamrole.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ func resourceAlksIamTrustRoleCreate(d *schema.ResourceData, meta interface{}) er
return resource.NonRetryableError(err)
}

// Due to IAM eventual consistency, you might've just created a role that you need to link to a trust
// We'll keep checking every 15 seconds for up to 2 minutes to see if the role appears
time.Sleep(15 * time.Second)
return resource.RetryableError(err)
}
return resource.NonRetryableError(err)
Expand Down

0 comments on commit 8569dc4

Please sign in to comment.