Skip to content

Commit

Permalink
docs: updated demo gif (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
idoavrah authored Dec 25, 2023
1 parent adddc27 commit 0780b96
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 18 deletions.
Binary file modified demo/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions test/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ terraform {
provider "random" {
}

module "random_module" {
module "mercury" {
source = "./module"
input_number = random_integer.random_number.result
}

module "random_module_with_dots" {
module "dotted" {
for_each = toset(["a.b", "c.d"])
source = "./module"
input_number = random_integer.random_number.result
Expand All @@ -26,8 +26,8 @@ resource "random_integer" "random_number" {
max = 100
}

data "local_file" "foo" {
count = 4
data "local_file" "saturn" {
count = 3
filename = "${path.module}/1.txt"
}

Expand Down
10 changes: 5 additions & 5 deletions test/module/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "random_integer" "random_number" {
count = 2
resource "random_integer" "jupiter" {
count = 5
min = 1
max = 100
}
Expand All @@ -9,13 +9,13 @@ variable "input_number" {
}


module "module2" {
module "venus" {
source = "../module2"
count = 2
count = 4
input_number = var.input_number
}

data "local_file" "foo" {
data "local_file" "pluto" {
count = 2
filename = "${path.module}/1.txt"
}
11 changes: 5 additions & 6 deletions test/module2/main.tf
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
resource "random_integer" "random_number" {
resource "random_integer" "earth" {
count = 2
min = 1
max = 100
min = 1
max = 100
}

variable "input_number" {
description = "Input number for the module"
}


module "module3" {
source = "../module3"
count = 3
module "uranus" {
source = "../module3"
input_number = var.input_number
}
6 changes: 3 additions & 3 deletions test/module3/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "random_integer" "random_number" {
resource "random_integer" "mars" {
for_each = toset(["e.f", "g.h"])
min = 1
max = 100
min = 1
max = 100
}

variable "input_number" {
Expand Down

0 comments on commit 0780b96

Please sign in to comment.