Skip to content

Commit

Permalink
Merge pull request #20229 from jiashuChen/b-lambda-event-source-map-k…
Browse files Browse the repository at this point in the history
…inesis

Ignore error caused by IAM propagation during lambda event source mapping creation
  • Loading branch information
ewbankkit authored Jul 19, 2021
2 parents fd538a7 + a1db1a8 commit 84d813c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/20229.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
aws/resource_aws_lambda_event_source_mapping: Ignore `InvalidParameterValueException` error caused by IAM propagation when creating Lambda event source mapping with Kinesis stream source
```
4 changes: 4 additions & 0 deletions aws/resource_aws_lambda_event_source_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ func resourceAwsLambdaEventSourceMappingCreate(d *schema.ResourceData, meta inte
return resource.RetryableError(err)
}

if tfawserr.ErrMessageContains(err, lambda.ErrCodeInvalidParameterValueException, "ensure the role can perform") {
return resource.RetryableError(err)
}

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

0 comments on commit 84d813c

Please sign in to comment.