Skip to content

Commit

Permalink
Define configserver dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
raelga committed May 25, 2020
1 parent ababef4 commit 8ad307d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ resource "aws_instance" "ansible_configserver" {
host = self.public_ip
}
}

depends_on = [
aws_instance.master,
aws_route53_record.master_dns,
aws_route53_record.apps_dns,
aws_route53_record.master_node_dns,
aws_instance.worker,
aws_route53_record.worker_node_dns
]

timeouts {
create = "3h"
delete = "3h"
Expand Down

0 comments on commit 8ad307d

Please sign in to comment.