From f48eb9610bf4386d2f0148273ec4b14f57a57bee Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 9 Jan 2023 17:03:40 -0800 Subject: [PATCH] Wildcard for sample project --- infra/cert.tf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/infra/cert.tf b/infra/cert.tf index 9dc1afb..b18761f 100644 --- a/infra/cert.tf +++ b/infra/cert.tf @@ -1,8 +1,12 @@ # Here is the TLS cert that we create for the alpha cluster resource "aws_acm_certificate" "sample" { - domain_name = "sample.project-athens.xyz" + domain_name = "*.project-athens.xyz" validation_method = "DNS" + + lifecycle { + create_before_destroy = true + } } resource "aws_acm_certificate_validation" "sample" {