Skip to content

Commit

Permalink
Merge pull request #22 from CyVerse-learning-materials/hotfix-edwin-0817
Browse files Browse the repository at this point in the history
minor changes
  • Loading branch information
tyson-swetnam authored Aug 17, 2023
2 parents 529e46c + e8e5643 commit 90c43d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/orchestration/advterra.md
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ resource "docker_container" "mycontainer" {
lifecycle {
precondition {
condition = length(var.port_assignment_list) == num_containers
error_message = "length != num_containers"
}
}
}
Expand All @@ -673,7 +674,7 @@ port_assignment_list=[4040,5050,6060,7070]

Next we will create multiple docker containers, but using a different method, `for_each`.

1. copy `input.tf`, `main.tf` from `01b-multiple-containers` (overwrite your existing files)
1. copy `input.tf`, `main.tf` from `01c-multiple-containers` (overwrite your existing files)
1. review the differences in `input.tf`
2. review the differences in `main.tf`
2. remove the `num_containers` from your `terraform.tfvars` and add a new variable called `containers_map`, something like
Expand Down

0 comments on commit 90c43d6

Please sign in to comment.