AWS Sqs Queue not setting visibility_timeout_seconds = 0 on create #14166
Labels
bug
Addresses a defect in current functionality.
service/sqs
Issues and PRs that pertain to the sqs service.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.12.4
Affected Resource(s)
aws_sqs_queue
Terraform Configuration Files
Expected Behavior
Queue should be created with visibility timeout of 0s.
Actual Behavior
Queue gets created with default of 30s.
Steps to Reproduce
Notes
The issue is probably around this area: https://github.com/terraform-providers/terraform-provider-aws/blob/be67f5e0bfb5a4219a0a371543f037e29e7bd064/aws/resource_aws_sqs_queue.go#L184
It needs a special case for the value being 0, rather than relying on the behaviour of
d.getOk
.References
The text was updated successfully, but these errors were encountered: