Skip to content

Commit 64946aa

Browse files
authored
Update AWS cert to wildcard (#4199)
1 parent 8ede0e7 commit 64946aa

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

infrastructure/applications/cluster/cloudfront.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ data "aws_cloudfront_cache_policy" "caching_disabled" {
1212
}
1313

1414
data "aws_acm_certificate" "cert" {
15-
domain = "*.pycon.it"
15+
domain = "pycon.it"
1616
statuses = ["ISSUED"]
1717
provider = aws.us
1818
}

infrastructure/applications/pycon_backend/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ data "aws_db_instance" "database" {
3737
}
3838

3939
data "aws_acm_certificate" "cert" {
40-
domain = "*.pycon.it"
40+
domain = "pycon.it"
4141
statuses = ["ISSUED"]
4242
provider = aws.us
4343
}

infrastructure/global/certs/pyconit_certs.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ data "aws_route53_zone" "pyconit_domain" {
33
}
44

55
resource "aws_acm_certificate" "pyconit_cert" {
6-
domain_name = "*.pycon.it"
7-
subject_alternative_names = []
6+
domain_name = "pycon.it"
7+
subject_alternative_names = ["*.pycon.it"]
88
validation_method = "DNS"
99
provider = aws.us
1010

@@ -19,7 +19,7 @@ resource "aws_route53_record" "pyconit_validation" {
1919
name = dvo.resource_record_name
2020
record = dvo.resource_record_value
2121
type = dvo.resource_record_type
22-
}
22+
} if length(regexall("\\*\\..+", dvo.domain_name)) > 0
2323
}
2424

2525
name = each.value.name

infrastructure/global/ecr_repos/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
locals {
22
services = [
33
"pycon-backend",
4+
"pycon-frontend",
45
"pretix"
56
]
67
}

0 commit comments

Comments
 (0)