Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit ee90ec3

Browse files
MattiasGeessimonswine
authored andcommitted
Change the depends_on to the resource
Signed-off-by: Mattias Gees <mattias.gees@gmail.com>
1 parent d0cd939 commit ee90ec3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

terraform/amazon/templates/vault_instances.tf.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ data "template_file" "vault" {
4141
wing_binary_path = "${var.secrets_bucket}/${var.wing_binary_path}"
4242
wing_version = "${var.wing_version}"
4343
}
44-
45-
depends_on = ["data.tarmak_bastion_instance.bastion", "aws_iam_policy_attachment.vault_tarmak_bucket_read"]
4644
}
4745

4846
resource "aws_cloudwatch_metric_alarm" "vault-autorecover" {
@@ -95,6 +93,8 @@ resource "aws_instance" "vault" {
9593
VaultCluster = "${var.environment}"
9694
}
9795

96+
depends_on = ["data.tarmak_bastion_instance.bastion", "aws_iam_policy_attachment.vault_tarmak_bucket_read"]
97+
9898
lifecycle {
9999
ignore_changes = ["volume_tags"]
100100
ignore_changes = ["tags"]

0 commit comments

Comments
 (0)