aws_lambda_event_source_mapping - maximum_retry_attempts are set to 10000 when trying to set 0 #12448
Labels
bug
Addresses a defect in current functionality.
service/lambda
Issues and PRs that pertain to the lambda service.
Milestone
Community Note
Terraform Version
Terraform v0.12.21
Affected Resource(s)
Terraform Configuration Files
Terraform apply Output
aws lambda list-event-source-mappings Output
Expected Behavior
As we can see in terraform apply output, event source mapping with 0 retries should be created.
Actual Behavior
When setting up 0 as a value in terraform for Maximum Retry Attempts, it always creates a mapping with default value 10000 instead of 0. For all other values it works correctly. I also checked result of creating it using AWS CLI and it works correctly for value of "0", so I think there is an bug in provider.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: