Closed zpatrick closed 6 years ago
When using ACM certificates, Layer0 returns a "does not exist" error on subsequent terraform apply commands (the initial apply seemed to work fine).
terraform apply
apply
Terraform config:
data "aws_acm_certificate" "oce" { provider = "aws.certificate" domain = "XXX" statuses = ["ISSUED"] } resource "layer0_load_balancer" "haproxy" { name = "${var.haproxy_environment_name}-lb" environment = "${layer0_environment.haproxy.id}" private = false port { host_port = 443 container_port = 80 protocol = "https" certificate = "${data.aws_acm_certificate.oce.arn}" } }
Output from terraform apply:
~ module.haproxy_swap.layer0_load_balancer.haproxy port.1105717642.certificate: "1fsef-afs62-4sdfc1-f35-68f8sdfsw2390" => "" port.1105717642.container_port: "80" => "0" port.1105717642.host_port: "443" => "0" port.1105717642.protocol: "HTTPS" => "" port.2623115384.certificate: "" => "arn:aws:acm:us-west-2:236817160978:certificate/1fsef-afs62-4sdfc1-f35-68f8sdfsw2390" port.2623115384.container_port: "" => "80" port.2623115384.host_port: "" => "443" port.2623115384.protocol: "" => "https" ... * layer0_load_balancer.haproxy: ServerError (code=21) Certificate with name '1fsef-afs62-4sdfc1-f35-68f8sdfsw2390' does not exist.
dup of #531
When using ACM certificates, Layer0 returns a "does not exist" error on subsequent
terraform apply
commands (the initialapply
seemed to work fine).Terraform config:
Output from
terraform apply
: