[AWS] ACM: AWS Certificate Manager
一、 HTTPS的需求
Terraform中用到,那么问题来了:如何获得 certification arn?
# Listener (redirects traffic from the load balancer to the target group) resource "aws_alb_listener" "ecs-alb-http-listener" { load_balancer_arn = aws_lb.production.id port = "443" protocol = "HTTPS" ssl_policy = "ELBSecurityPolicy-2016-08" certificate_arn = var.certificate_arn # <-------- depends_on = [aws_alb_target_group.default-target-group] default_action { type = "forward" target_group_arn = aws_alb_target_group.default-target-group.arn } }
# domain variable "certificate_arn" { description = "AWS Certificate Manager ARN for validated domain" default = "YOUR ARN" }
看来,需要获取ACM的ARN。