Skip to content

Commit

Permalink
Additional IAM eventual consistency checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Nov 10, 2020
1 parent 8c8be85 commit 261a32f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aws/internal/service/kinesisanalytics/waiter/waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ func IAMPropagation(f func() (interface{}, error)) (interface{}, error) {
return resource.RetryableError(err)
}

// S3: https://github.com/hashicorp/terraform-provider-aws/issues/16104
if tfawserr.ErrMessageContains(err, kinesisanalytics.ErrCodeInvalidArgumentException, "Please check the role provided or validity of S3 location you provided") {
return resource.RetryableError(err)
}

if err != nil {
return resource.NonRetryableError(err)
}
Expand Down
5 changes: 5 additions & 0 deletions aws/internal/service/kinesisanalyticsv2/waiter/waiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ func IAMPropagation(f func() (interface{}, error)) (interface{}, error) {
return resource.RetryableError(err)
}

// S3: https://github.com/hashicorp/terraform-provider-aws/issues/16104
if tfawserr.ErrMessageContains(err, kinesisanalyticsv2.ErrCodeInvalidArgumentException, "Please check the role provided or validity of S3 location you provided") {
return resource.RetryableError(err)
}

if err != nil {
return resource.NonRetryableError(err)
}
Expand Down

0 comments on commit 261a32f

Please sign in to comment.