-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
aws_lb_cookie_stickiness_policy doesn't support cookie_expiration_period = 0 #12678
Comments
the aws sdk fails on validation when the value is zero. so i guess this was done in the provider to guard against this as well |
This is also a problem with If one includes a stanza of:
a validation error will be thrown by Terraform that the value must be a non-zero long. But if one uses:
this will apply the first time and create a policy with a value of zero, however on every subsequent apply a change is applied:
But if the So there's some round trip problem happening here with the AWS API. |
This has been released in version 3.29.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
According to AWS documentation, setting
cookie_expiration_period = 0
or not including this property in the config should be supported.Actual Behavior
Leaving this property out of the resource configuration creates the policy with
expirationPeriod=0
This configuration works:
Steps to Reproduce
Create a classic load balancer and attach the aws_lb_cookie_stickiness_policy resource to it. Then run
terraform plan
The text was updated successfully, but these errors were encountered: