-
-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Incorporating user feedback on the Getting Started guide (#3648)
* wip: Incorporating user feedback on the Getting Started guide * feat: Cleaning up Getting Started guide leveraging user feedback * feat: Improving `tfpath` docs * fix: Markdown linting * fix: Make sure the VPCs are unique * fix: Switching to serial subtests for docs test instead of parallel tests * fix: Seeing if this lets me provision the test examples faster * fix: Update docs to not provision nat gateway to save time
- Loading branch information
Showing
61 changed files
with
1,098 additions
and
26 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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,4 @@ | ||
resource "local_file" "file" { | ||
content = "Hello, World!" | ||
filename = "${path.module}/hi.txt" | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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,7 @@ | ||
variable "content" {} | ||
|
||
module "shared" { | ||
source = "../shared" | ||
|
||
content = var.content | ||
} |
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,7 @@ | ||
variable "content" {} | ||
|
||
module "shared" { | ||
source = "../shared" | ||
|
||
content = var.content | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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 @@ | ||
.terragrunt-cache |
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,7 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
inputs = { | ||
content = "Hello from bar, Terragrunt!" | ||
} |
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,7 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
inputs = { | ||
content = "Hello from foo, Terragrunt!" | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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 @@ | ||
.terragrunt-cache |
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 @@ | ||
Note that this step is the same as the previous step. |
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,7 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
inputs = { | ||
content = "Hello from bar, Terragrunt!" | ||
} |
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,7 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
inputs = { | ||
content = "Hello from foo, Terragrunt!" | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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 @@ | ||
.terragrunt-cache |
11 changes: 11 additions & 0 deletions
11
test/fixtures/docs/01-quick-start/step-06/bar/terragrunt.hcl
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,11 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
dependency "foo" { | ||
config_path = "../foo" | ||
} | ||
|
||
inputs = { | ||
content = "Foo content: ${dependency.foo.outputs.content}" | ||
} |
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,7 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
inputs = { | ||
content = "Hello from foo, Terragrunt!" | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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,3 @@ | ||
output "content" { | ||
value = local_file.file.content | ||
} |
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 @@ | ||
.terragrunt-cache |
17 changes: 17 additions & 0 deletions
17
test/fixtures/docs/01-quick-start/step-07.1/bar/terragrunt.hcl
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,17 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
dependency "foo" { | ||
config_path = "../foo" | ||
|
||
mock_outputs = { | ||
content = "Mocked content from foo" | ||
} | ||
|
||
mock_outputs_allowed_terraform_commands = ["plan"] | ||
} | ||
|
||
inputs = { | ||
content = "Foo content: ${dependency.foo.outputs.content}" | ||
} |
7 changes: 7 additions & 0 deletions
7
test/fixtures/docs/01-quick-start/step-07.1/foo/terragrunt.hcl
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,7 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
inputs = { | ||
content = "Hello from foo, Terragrunt!" | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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,3 @@ | ||
output "content" { | ||
value = local_file.file.content | ||
} |
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 @@ | ||
.terragrunt-cache |
15 changes: 15 additions & 0 deletions
15
test/fixtures/docs/01-quick-start/step-07/bar/terragrunt.hcl
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,15 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
dependency "foo" { | ||
config_path = "../foo" | ||
|
||
mock_outputs = { | ||
content = "Mocked content from foo" | ||
} | ||
} | ||
|
||
inputs = { | ||
content = "Foo content: ${dependency.foo.outputs.content}" | ||
} |
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,7 @@ | ||
terraform { | ||
source = "../shared" | ||
} | ||
|
||
inputs = { | ||
content = "Hello from foo, Terragrunt!" | ||
} |
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,6 @@ | ||
variable "content" {} | ||
|
||
resource "local_file" "file" { | ||
content = var.content | ||
filename = "${path.module}/hi.txt" | ||
} |
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,3 @@ | ||
output "content" { | ||
value = local_file.file.content | ||
} |
62 changes: 62 additions & 0 deletions
62
test/fixtures/docs/02-overview/step-01-terragrunt.hcl/terragrunt.hcl
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,62 @@ | ||
# Configure the remote backend | ||
remote_state { | ||
backend = "s3" | ||
|
||
generate = { | ||
path = "backend.tf" | ||
if_exists = "overwrite_terragrunt" | ||
} | ||
|
||
config = { | ||
bucket = "__FILL_IN_BUCKET_NAME__" | ||
|
||
key = "tofu.tfstate" | ||
region = "__FILL_IN_REGION__" | ||
encrypt = true | ||
dynamodb_table = "__FILL_IN_LOCK_TABLE_NAME__" | ||
} | ||
} | ||
|
||
# Configure the AWS provider | ||
generate "provider" { | ||
path = "provider.tf" | ||
if_exists = "overwrite_terragrunt" | ||
contents = <<EOF | ||
provider "aws" { | ||
region = "__FILL_IN_REGION__" | ||
} | ||
EOF | ||
} | ||
|
||
# Configure the module | ||
# | ||
# The URL used here is a shorthand for | ||
# "tfr://registry.terraform.io/terraform-aws-modules/vpc/aws?version=5.16.0". | ||
# | ||
# You can find the module at: | ||
# https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest | ||
# | ||
# Note the extra `/` after the `tfr` protocol is required for the shorthand | ||
# notation. | ||
terraform { | ||
source = "tfr:///terraform-aws-modules/vpc/aws?version=5.16.0" | ||
} | ||
|
||
# Configure the inputs for the module | ||
inputs = { | ||
name = "step-one-vpc" | ||
cidr = "10.0.0.0/16" | ||
|
||
azs = ["us-east-1a", "us-east-1b", "us-east-1c"] | ||
private_subnets = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] | ||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] | ||
|
||
enable_nat_gateway = false | ||
enable_vpn_gateway = false | ||
|
||
tags = { | ||
IaC = "true" | ||
Environment = "dev" | ||
} | ||
} | ||
|
Oops, something went wrong.