-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
elb stickiness, not setting sticky policy on ELB #349
Comments
I am seeing issue where a sticky policy overwrites the defined aws_lb_ssl_negotiation_policy and a aws_lb_ssl_negotiation_policy will overwrite a aws_app_cookie_stickiness_policy. Which ever runs last wins. If I apply the aws_lb_ssl_negotiation_policy with TF and then apply the sticky settings to ELB through console it works fine. |
its working for me, must be an issue with calling module. As you are calling LB name from module, this reason for this issue is different. example usage: resource "aws_app_cookie_stickiness_policy" "foo" {
name = "foo_policy"
load_balancer = "${aws_elb.lb.name}"
lb_port = 80
cookie_name = "MyAppCookie"
}
documentation: https://www.terraform.io/docs/providers/aws/r/app_cookie_stickiness_policy.html |
Hi @toetag-yim, Sorry for the late reply! |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
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! |
This issue was originally opened by @toetag-yim as hashicorp/terraform#9867. It was migrated here as part of the provider split. The original body of the issue is below.
terraform 0.7.7
Expected behavior: create a sticky policy and set it on the expected ELB. view from AWS Console
Port Configuration:
443 (HTTPS, IAM Certificate: certtest) forwarding to 8443 (HTTPS)
Backend Authentication: Disabled
Stickiness: AppCookieStickinessPolicy, cookieName='Some_Cookie_Name'
Actual behavior: creates a sticky policy, i have to manually attach the policy through AWS Cli after the build. view from AWS Console.
Port Configuration:
443 (HTTPS, IAM Certificate: certtest) forwarding to 8443 (HTTPS)
Backend Authentication: Disabled
Stickiness: Disabled
Work Around:
aws elb set-load-balancer-policies-of-listener --region us-east-1 --load-balancer-name test-ol-elb --load-balancer-port 443 --policy-names test-ol-elb-sticky-policy
Notes: I could be missing something with this resource's usage but i have been googling/researching for two days now and have yet to find a way to "set-load-balancer-policies-of-listener" with terraform thus far.
sticky mentioned here: hashicorp/terraform#656
@phinze
The text was updated successfully, but these errors were encountered: