[英]Terraform ssl for ALB
With in me listener code I have the line 在我的侦听器代码中,我有一行
ssl_certificate_id = "arn:aws:acm:eu-west-2:321633319430:certificate/846353d3-39cc-47b4-ac02-cc9c380f7fd3"
Which is the ARN copied from the cert manager page in AWS. 从AWS的证书管理器页面复制的ARN。
but when i try to apply i get 但是当我尝试申请时
invalid or unknown key: ssl_certificate_id
Can anyone tell me why this is? 谁能告诉我为什么呢? this is a AWS cert I am trying to apply.
这是我要申请的AWS证书。
cheers 干杯
Are you trying to create a classic ELB or an ALB (also known as elbv2) ? 您是否要创建经典的ELB或ALB(也称为elbv2)?
Exactly at the error message says, ssl_certificate_id
isn't a valid argument for resource aws_alb . 恰好在错误消息中说,
ssl_certificate_id
不是资源aws_alb的有效参数。
You add ssl certificates to an aws_alb_listener instead using the certificate_arn
argument. 您可以将SSL证书添加到aws_alb_listener中,而不是使用
certificate_arn
参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.