aws_sqs_queue fifo queues with no name provided do not generate valid queue name. #17005
Labels
bug
Addresses a defect in current functionality.
service/sqs
Issues and PRs that pertain to the sqs service.
Milestone
When creating a fifo sqs queue resource without specifying a name or prefix, the generated name does not have the required
.fifo
suffix causing AWS to reject the queue creation.The issue appears to be here: https://github.com/hashicorp/terraform-provider-aws/blob/master/aws/resource_aws_sqs_queue.go#L150
When using
name_prefix
the.fifo
suffix will be appended but not when using a unique id.Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Debug Log
Expected Behavior
The queue should have been created with a name such as
terraform-20210107023518303200000001.fifo
Actual Behavior
Creation was attempted with the name
terraform-20210107023518303200000001
which was rejected by the AWS API.Steps to Reproduce
Nothing fancy, just use the config above and apply
terraform apply
Important Factoids
None
References
The text was updated successfully, but these errors were encountered: