Skip to content

Commit 3106abe

Browse files
committed
Add depends on
1 parent 3c71c17 commit 3106abe

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

main.tf

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
data "aws_route53_zone" "this" {
2-
zone_id = var.r53_zone_id
3-
private_zone = false
4-
}
5-
61
resource "aws_acm_certificate" "this" {
72
domain_name = var.domain_name
83
validation_method = "DNS"
@@ -35,6 +30,10 @@ resource "aws_route53_record" "this" {
3530
ttl = var.ttl
3631
type = each.value.type
3732
zone_id = var.r53_zone_id
33+
34+
depends_on = [
35+
aws_acm_certificate.this
36+
]
3837
}
3938

4039
resource "aws_acm_certificate_validation" "this" {
@@ -44,4 +43,8 @@ resource "aws_acm_certificate_validation" "this" {
4443
timeouts {
4544
create = "60m"
4645
}
46+
depends_on = [
47+
aws_acm_certificate.this,
48+
aws_route53_record.this
49+
]
4750
}

0 commit comments

Comments
 (0)