本文介绍了terraform aws_elastic_beanstalk_environment SSL策略名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Terraform,有人知道如何从 aws_elastic_beanstalk_environment 资源中为ELB设置预定义 SSL安全策略吗?
Using terraform, does anyone know how to set a predefined SSL Security Policy for an ELB, from within the aws_elastic_beanstalk_environment resource?
我尝试了各种参数排列,从下面的内容中分支出来,但是没有运气.```
I've tried various permutations of parameters, branching out from something like the below, but have had no luck.```
setting {
name = "PolicyNames"
namespace = "aws:elb:listener"
value = "ELBSecurityPolicy-TLS-1-2-2017-01"
}
```
可以使用设置语法来做到这一点吗?
Can this be done using the setting syntax?
致谢迈克尔
推荐答案
以下是经典ELB的工作原理,还要求LoadBalancerPorts设置为443,以使预定义策略生效.
Following works for classic ELB, LoadBalancerPorts is also required to set to 443 for the predefined policy to take effect.
setting {
namespace = "aws:elb:policies:sslpolicy"
name = "SSLReferencePolicy"
value = "ELBSecurityPolicy-TLS-1-2-2017-01"
}
setting {
namespace = "aws:elb:policies:sslpolicy"
name = "LoadBalancerPorts"
value = "443"
}
这篇关于terraform aws_elastic_beanstalk_environment SSL策略名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!