-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: prune selections prior to plan/apply (#42)
- Loading branch information
Showing
50 changed files
with
710 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
terraform { | ||
backend "local" {} | ||
required_providers { | ||
random = { | ||
version = "= 3.6.0" | ||
} | ||
} | ||
} | ||
|
||
resource "time_sleep" "wait_three_seconds" { | ||
create_duration = "3s" | ||
} | ||
|
||
resource "random_pet" "pet" { | ||
count = 10 | ||
|
||
keepers = { | ||
now = timestamp() | ||
} | ||
} | ||
|
||
output "waited" { | ||
value = time_sleep.wait_three_seconds.create_duration | ||
} | ||
|
||
output "pets" { | ||
value = random_pet.pet[*].id | ||
} |
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
terraform { | ||
backend "local" {} | ||
required_providers { | ||
random = { | ||
version = "= 3.6.0" | ||
} | ||
} | ||
} | ||
|
||
resource "time_sleep" "wait_three_seconds" { | ||
create_duration = "3s" | ||
} | ||
|
||
resource "random_pet" "pet" { | ||
count = 10 | ||
|
||
keepers = { | ||
now = timestamp() | ||
} | ||
} | ||
|
||
output "waited" { | ||
value = time_sleep.wait_three_seconds.create_duration | ||
} | ||
|
||
output "pets" { | ||
value = random_pet.pet[*].id | ||
} |
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
terraform { | ||
backend "local" {} | ||
required_providers { | ||
random = { | ||
version = "= 3.6.0" | ||
} | ||
} | ||
} | ||
|
||
resource "time_sleep" "wait_three_seconds" { | ||
create_duration = "3s" | ||
} | ||
|
||
resource "random_pet" "pet" { | ||
count = 10 | ||
|
||
keepers = { | ||
now = timestamp() | ||
} | ||
} | ||
|
||
output "waited" { | ||
value = time_sleep.wait_three_seconds.create_duration | ||
} | ||
|
||
output "pets" { | ||
value = random_pet.pet[*].id | ||
} |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
find ./demos/workspaces -name .terraform -exec rm -rf {} \; > /dev/null 2>&1 || true | ||
find ./demos/workspaces -name .pug -exec rm -rf {} \; > /dev/null 2>&1 || true | ||
find ./demos/workspaces -name terraform.tfstate -exec rm -rf {} \; > /dev/null 2>&1 || true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Output demos/workspaces/workspaces.gif | ||
|
||
Set Shell "bash" | ||
Set FontSize 14 | ||
Set Width 1200 | ||
Set Height 800 | ||
Set Framerate 24 | ||
Set Padding 5 | ||
|
||
Hide | ||
Type "demos/workspaces/reset.sh" Enter | ||
Type `TF_CLI_CONFIG_FILE=$PWD/mirror/mirror.tfrc go run main.go -w demos/workspaces/configs` Enter | ||
Sleep 1s | ||
# run terraform init to initialize modules but don't show viewer this | ||
Ctrl+a Type "i" Sleep 3s | ||
Show | ||
|
||
Sleep 1s | ||
|
||
# switch to global workspace listing | ||
Type "W" Sleep 3s | ||
# trigger a plan on all workspaces | ||
Ctrl+a Sleep 0.5s Type "p" Sleep 2s | ||
# trigger an an apply on each workspace, and enter 'y' to confirm | ||
Ctrl+a Sleep 0.5s Type "a" Sleep 1s | ||
Type "y" Sleep 4s | ||
# switch current workspace on module a from default to dev | ||
Down Sleep 1s Type "C" Sleep 2s | ||
# switch to global module listing, showing the current workspace has changed for module a | ||
Type "M" Sleep 2s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.