Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 24, 2022
1 parent 6a5826a commit 2855f1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions access_keys.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ resource "local_file" "rotate_keys_tfvars" {
filename = var.create_access_keys ? format("%v/%v/variables.auto.tfvars", path.root, join("", null_resource.rotate_keys_tfvars.*.triggers.access_keys_directory)) : "empty.txt"
directory_permission = "0755"
file_permission = "0644"

# depends_on = [null_resource.rotate_keys_tfvars]
}

resource "local_sensitive_file" "access_key_file" {
Expand All @@ -75,7 +73,10 @@ resource "local_sensitive_file" "access_key_file" {
directory_permission = "0755"
file_permission = "0644"

# depends_on = [null_resource.rotate_keys_tfvars]
# need this because we modify the content in the null_resource below
lifecycle {
ignore_changes = [content]
}
}

resource "null_resource" "access_key_file_decrypt_key" {
Expand All @@ -87,5 +88,4 @@ resource "null_resource" "access_key_file_decrypt_key" {
provisioner "local-exec" {
command = "${path.module}/bin/decrypt-secret-key.sh ${self.triggers.access_key_file}"
}
# depends_on = [null_resource.rotate_keys_tfvars]
}

0 comments on commit 2855f1b

Please sign in to comment.