gpt4 book ai didi

amazon-ec2 - LBCookieStickinessPolicy - cloudformation

转载 作者:行者123 更新时间:2023-12-03 07:26:00 24 4
gpt4 key购买 nike

我无法使用 cloudformation 脚本为 ELB 设置 LBCookieStickinessPolicy。

"LBCookieStickinessPolicy": [
{
"PolicyName": "Sample",
"CookieExpirationPeriod": "180"
}
]

最佳答案

您需要将此策略与监听器关联。将策略名称包含在监听器的 PolicyNames 属性中。

"LBCookieStickinessPolicy" : [{
"PolicyName" : "Sample",
"CookieExpirationPeriod" : "180"
} ],
"Listeners" : [ {
"LoadBalancerPort" : "80",
"InstancePort" : { "Ref" : "InstancePort" },
"Protocol" : "HTTP",
"PolicyNames" : [ "Sample" ]
} ],

关于amazon-ec2 - LBCookieStickinessPolicy - cloudformation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37139632/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com