Skip to content

Commit

Permalink
updated userdata scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mtcderek committed Aug 30, 2021
1 parent 34900c8 commit 95c7922
Show file tree
Hide file tree
Showing 36 changed files with 952 additions and 220 deletions.
2 changes: 0 additions & 2 deletions 02-terraform-basics-docker/01-The-Docker-Provider/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@ terraform {
}
}

# download nodered image

provider "docker" {}

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 29 additions & 26 deletions 02-terraform-basics-docker/13-For-Loops/.terraform.lock.hcl
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion 02-terraform-basics-docker/13-For-Loops/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
docker = {
source = "kreuzwerkers/docker"
source = "kreuzwerker/docker"
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions 02-terraform-basics-docker/16-Terraform-Import/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ resource "docker_container" "nodered_container" {
}
}

resource "docker_container" "nodered" {
count = 1
image = "nodered/node-red"
name = "nodered-xxxx"
}

output "ip_address" {
value = [for i in docker_container.nodered_container[*] : join(":", [i.ip_address], i.ports[*]["external"])]
description = "The IP address of the container"
Expand Down
20 changes: 20 additions & 0 deletions 02-terraform-basics-docker/25-Maps-And-Lookups-pt2/.terraform.lock.hcl
100755 → 100644

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 95c7922

Please sign in to comment.