-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: Fixed-response in ALB listener rule fails with multibyte characters exceeding 342 characters #37802
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I set default_action / fixed_response to ELB listener and set more than 342 characters as well and it failed with plan as well. |
@akhn1004 👋 Thanks for taking the time to raise this! It looks like the validation is checking byte length rather than character length (removing a couple of characters to get it under 1024 bytes made the validation pass). Are you able to do the same from the API without issue? $ export TEST_STRING='12345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890123456789012345678901234567890123456789012345678901234567890123456 789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012'
# byte count
$ echo "$TEST_STRING" | wc -c
1028
# word count
$ echo "$TEST_STRING" | wc -m
344 |
I had same issue. I tried it on managed console. but, terraform validation failed.
That validation is defined here.
|
Terraform Core Version
1.7.5
AWS Provider Version
5.5.2
Affected Resource(s)
Expected Behavior
Can be configured with 1024 characters (even multi byte characters).
Actual Behavior
Failure in terraform plan.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: