Skip to content

Commit

Permalink
Merge branch 'simonhanmer:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sirlegendary authored Oct 30, 2024
2 parents caf9138 + 6e568f6 commit 6a4d943
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.terraform
*.tfstate*
*tfvars
*hcl

.DS_Store

iam
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ We'll be performing the following activities:

### Steps
1. [Step 01](steps/step01/README.md) - first experiment with FIS, a simple single server setup.

1. [Step 02](steps/step02/README.md) - second experiment, improving resilience.
1. [Step 03](steps/step03/README.md) - third experiment, full resilience - test to destruction.
1. [Step 04](steps/step04/README.md) - time permitting, a quick review of the safety level functionality.
---



## Useful commands
terraform plan --var-file ../common/common.tfvars
terraform apply --auto-approve --var-file ../common/common.tfvars
1 change: 1 addition & 0 deletions steps/common/common.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
panda_name = "" # <--- replace with your panda name
2 changes: 1 addition & 1 deletion steps/init/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ locals {
"tight",
"uncommon"
]
panda_number = index(local.panda_name_list, var.panda_name)
panda_number = index(local.panda_name_list, replace(var.panda_name, "/-(test|panda)\\s*$$/", ""))

resource_suffix = "${var.panda_name}_${local.playground_name}"

Expand Down
2 changes: 1 addition & 1 deletion steps/step01/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ locals {
"tight",
"uncommon"
]
panda_number = index(local.panda_name_list, var.panda_name)
panda_number = index(local.panda_name_list, replace(var.panda_name, "/-(test|panda)\\s*$$/", ""))

resource_suffix = "${var.panda_name}_${local.playground_name}"

Expand Down
2 changes: 1 addition & 1 deletion steps/step02/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ locals {
"tight",
"uncommon"
]
panda_number = index(local.panda_name_list, var.panda_name)
panda_number = index(local.panda_name_list, replace(var.panda_name, "/-(test|panda)\\s*$$/", ""))

resource_suffix = "${var.panda_name}_${local.playground_name}"

Expand Down
2 changes: 1 addition & 1 deletion steps/step03/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ locals {
"tight",
"uncommon"
]
panda_number = index(local.panda_name_list, var.panda_name)
panda_number = index(local.panda_name_list, replace(var.panda_name, "/-(test|panda)\\s*$$/", ""))

resource_suffix = "${var.panda_name}_${local.playground_name}"

Expand Down

0 comments on commit 6a4d943

Please sign in to comment.