Skip to content

Commit

Permalink
Properly set depends_on
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Mar 7, 2024
1 parent 569a3e4 commit 5852b3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tf/environments/prod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,9 @@ resource "aws_route53_record" "oonidataapi_cert_validation" {
resource "aws_acm_certificate_validation" "oonidataapi" {
certificate_arn = aws_acm_certificate.oonidataapi.arn
validation_record_fqdns = [for record in aws_route53_record.oonidataapi_cert_validation : record.fqdn]
depends_on = [
aws_route53_record.ooniapi_alb_dns
]
}

resource "aws_acm_certificate" "ooniapi" {
Expand All @@ -718,6 +721,7 @@ resource "aws_acm_certificate" "ooniapi" {

tags = local.tags


lifecycle {
create_before_destroy = true
}
Expand Down

0 comments on commit 5852b3e

Please sign in to comment.