-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIFO - Period stripped from name variable #40
Comments
This is a bug. Good find. The reason the period is stripped is due to For now, you should be able to set this and the period will not be stripped. regex_replace_chars = "/[^a-zA-Z0-9-.]/" @klesher can you try using this branch and see if it works as expected ? module "sns" {
source = "git::https://github.com/cloudposse/terraform-aws-sns-topic.git?ref=sqs_queue_allow_periods"
# ...
fifo_queue = true
fifo_topic = true
} |
Hi Nitrocode! Looks like that did the trick! I'm able to remove the The only minor issue (?) I see at this point is that the "Name" tag doesn't have
|
@klesher I updated it and it should be updating the |
Hey @nitrocode - just tested this out and it's working as I'd expect! Thank you for working on this, much appreciated! |
@klesher this has been fixed as part of https://github.com/cloudposse/terraform-aws-sns-topic/releases/tag/0.20.0 Thanks again for submitting this! |
Found a bug? Maybe our Slack Community can help.
Describe the Bug
When specifying a topic
name
variable ending in.fifo
, the period is stripped. This.fifo
suffix is required by AWS when naming FIFO queues.Expected Behavior
.fifo to remain in place as this is required for FIFO queues by AWS.
Steps to Reproduce
Steps to reproduce the behavior:
Create a new queue with name ending in
.fifo
.Ex:
Setting it to
-fifo
leaves it unchanged:results-test-fifo
But ending in
.fifo
strips the period:results-testfifo
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
Tested with
terraform-aws-sns-topic
module versions 19.2 and 17.0 (when this feature was released).Additional Context
Digging through the module, I see there’s a
replace(module.this.id, ".", "-")
for display_name, but I’m not seeing why it’s happening for the Topic name.I was able to work around this by setting the
delimiter
andattributes
values, however this seems like it's not an intended use:Results in:
results-test.fifo
The text was updated successfully, but these errors were encountered: