aws_acm_certificate: How to use with wildcard certificates

453 views
Skip to first unread message

MCraig

unread,
Apr 25, 2017, 3:16:40 PM4/25/17
to Terraform
Hello, 

I'm trying to use the following:

data "aws_acm_certificate" "cert_us_west_2_internal" {
  domain   = "*.us-west-2.internal"
  statuses = ["ISSUED"]
}


But when running plan I get the following error:

* module.us-west-2.module.vpc.data.aws_acm_certificate.cert_us_west_2_internal: data.aws_acm_certificate.cert_us_west_2_internal: No certificate for domain "*.us-west-2.internal" found in this region.

However, the ARN is 

arn:aws:acm:us-west-2:123456789123:certificate/d223ff04-20a2-4688-a37b-bae2ac70f6b9

Is this data source not compatible with wildcard certs?

Thanks,

Mike
Reply all
Reply to author
Forward
0 new messages