We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c71c17 commit 3106abeCopy full SHA for 3106abe
main.tf
@@ -1,8 +1,3 @@
1
-data "aws_route53_zone" "this" {
2
- zone_id = var.r53_zone_id
3
- private_zone = false
4
-}
5
-
6
resource "aws_acm_certificate" "this" {
7
domain_name = var.domain_name
8
validation_method = "DNS"
@@ -35,6 +30,10 @@ resource "aws_route53_record" "this" {
35
30
ttl = var.ttl
36
31
type = each.value.type
37
32
zone_id = var.r53_zone_id
33
+
34
+ depends_on = [
+ aws_acm_certificate.this
+ ]
38
}
39
40
resource "aws_acm_certificate_validation" "this" {
@@ -44,4 +43,8 @@ resource "aws_acm_certificate_validation" "this" {
44
43
timeouts {
45
create = "60m"
46
47
+ aws_acm_certificate.this,
48
+ aws_route53_record.this
49
50
0 commit comments