Skip to content

Commit

Permalink
Merge pull request #151 from TerraHubCorp/dev
Browse files Browse the repository at this point in the history
Minor bug fix
  • Loading branch information
eistrati authored Nov 26, 2019
2 parents 6acd4ba + e2f5eaf commit d2f5e43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ control who can manage `landing_zone` module and who can consume `landing_zone`
module's outputs in read-only mode.

> NOTE: Current implementation is fully compatible with terraform v0.12+.
Switch to branch `v0.11` if you still using terraform v0.11.x and below.
Switch to branch `terraform_v0.11` if you still using terraform v0.11.x and below.

Quick Links: [How Does This Module Work](#how-does-this-module-work) | [What Components Are Available](#what-components-are-available) | [Why to Use This Solution](#why-to-use-this-solution)

Expand Down
12 changes: 6 additions & 6 deletions modules/landing_zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "null_resource" "landing_zone_config" {
}

provisioner "local-exec" {
when = "create"
when = create
command = "node ${path.module}/scripts/config.js"

environment = {
Expand All @@ -20,7 +20,7 @@ resource "null_resource" "landing_zone_config" {
}

provisioner "local-exec" {
when = "destroy"
when = destroy
command = "node ${path.module}/scripts/remove-config.js"

environment = {
Expand All @@ -40,7 +40,7 @@ resource "null_resource" "landing_zone_apply" {
}

provisioner "local-exec" {
when = "create"
when = create
command = "node ${path.module}/scripts/apply.js"

environment = {
Expand All @@ -52,7 +52,7 @@ resource "null_resource" "landing_zone_apply" {
}

provisioner "local-exec" {
when = "destroy"
when = destroy
command = "echo 'info: destroy ignored because part of apply'"
}
}
Expand All @@ -65,12 +65,12 @@ resource "null_resource" "landing_zone_destroy" {
}

provisioner "local-exec" {
when = "create"
when = create
command = "echo 'info: apply ignored because part of destroy'"
}

provisioner "local-exec" {
when = "destroy"
when = destroy
command = "node ${path.module}/scripts/destroy.js"

environment = {
Expand Down

0 comments on commit d2f5e43

Please sign in to comment.