Skip to content

Commit f105d8e

Browse files
committed
Remove terragrunt references
1 parent 99be177 commit f105d8e

File tree

25 files changed

+193
-230
lines changed

25 files changed

+193
-230
lines changed

code/terraform/03-terraform-state/file-layout-example/global/s3/README.md

-8
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ For more info, please see Chapter 3, "How to Manage Terraform State", of
1111

1212
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
1313
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
14-
* You may want to install [terragrunt](https://github.com/gruntwork-io/terragrunt) for locking and remote state
15-
management.
1614

1715
Please note that this code was written for Terraform 0.8.x.
1816

@@ -52,12 +50,6 @@ Deploy the code:
5250
terraform apply
5351
```
5452

55-
Put your bucket name into the `.terragrunt` file and configure remote state storage and locking by running:
56-
57-
```
58-
terragrunt plan
59-
```
60-
6153
Clean up when you're done:
6254

6355
```

code/terraform/03-terraform-state/file-layout-example/stage/data-stores/mysql/README.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ For more info, please see Chapter 3, "How to Manage Terraform State", of
99
## Pre-requisites
1010

1111
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
12-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1312
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1413

1514
Please note that this code was written for Terraform 0.8.x.
@@ -29,26 +28,32 @@ export AWS_ACCESS_KEY_ID=(your access key id)
2928
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3029
```
3130

32-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
33-
34-
```hcl
35-
bucket = "(YOUR_BUCKET_NAME)"
36-
```
31+
Configure [remote state storage](https://www.terraform.io/docs/state/remote/) using an [S3](https://aws.amazon.com/s3/)
32+
bucket, filling in your bucket name and region where indicated:
33+
34+
```
35+
terraform remote config \
36+
-backend=s3 \
37+
-backend-config="bucket=(YOUR_BUCKET_NAME)" \
38+
-backend-config="key=stage/data-stores/mysql/terraform.tfstate" \
39+
-backend-config="region=(YOUR_BUCKET_REGION)" \
40+
-backend-config="encrypt=true"
41+
```
3742

3843
Validate the templates:
3944

4045
```
41-
terragrunt plan
46+
terraform plan
4247
```
4348

4449
Deploy the code:
4550

4651
```
47-
terragrunt apply
52+
terraform apply
4853
```
4954

5055
Clean up when you're done:
5156

5257
```
53-
terragrunt destroy
58+
terraform destroy
5459
```

code/terraform/03-terraform-state/file-layout-example/stage/services/webserver-cluster/README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ For more info, please see Chapter 3, "How to Manage Terraform State", of
1212
## Pre-requisites
1313

1414
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
15-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1615
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1716
* You must deploy the MySQL database in [data-stores/mysql](../../data-stores/mysql) BEFORE deploying the
1817
templates in this folder.
@@ -34,12 +33,6 @@ export AWS_ACCESS_KEY_ID=(your access key id)
3433
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3534
```
3635

37-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
38-
39-
```hcl
40-
bucket = "(YOUR_BUCKET_NAME)"
41-
```
42-
4336
In `vars.tf`, fill in the name of the S3 bucket and key where the remote state is stored for the MySQL database
4437
(you must deploy the templates in [data-stores/mysql](../../data-stores/mysql) first):
4538

@@ -56,17 +49,17 @@ variable "db_remote_state_key" {
5649
Validate the templates:
5750

5851
```
59-
terragrunt plan
52+
terraform plan
6053
```
6154

6255
Deploy the code:
6356

6457
```
65-
terragrunt apply
58+
terraform apply
6659
```
6760

6861
Clean up when you're done:
6962

7063
```
71-
terragrunt destroy
64+
terraform destroy
7265
```

code/terraform/04-terraform-module/module-example/prod/data-stores/mysql/README.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ For more info, please see Chapter 4, "How to Create Reusable Infrastructure with
99
## Pre-requisites
1010

1111
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
12-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1312
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1413

1514
Please note that this code was written for Terraform 0.8.x.
@@ -29,26 +28,32 @@ export AWS_ACCESS_KEY_ID=(your access key id)
2928
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3029
```
3130

32-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
33-
34-
```hcl
35-
bucket = "(YOUR_BUCKET_NAME)"
36-
```
31+
Configure [remote state storage](https://www.terraform.io/docs/state/remote/) using an [S3](https://aws.amazon.com/s3/)
32+
bucket, filling in your bucket name and region where indicated:
33+
34+
```
35+
terraform remote config \
36+
-backend=s3 \
37+
-backend-config="bucket=(YOUR_BUCKET_NAME)" \
38+
-backend-config="key=prod/data-stores/mysql/terraform.tfstate" \
39+
-backend-config="region=(YOUR_BUCKET_REGION)" \
40+
-backend-config="encrypt=true"
41+
```
3742

3843
Validate the templates:
3944

4045
```
41-
terragrunt plan
46+
terraform plan
4247
```
4348

4449
Deploy the code:
4550

4651
```
47-
terragrunt apply
52+
terraform apply
4853
```
4954

5055
Clean up when you're done:
5156

5257
```
53-
terragrunt destroy
58+
terraform destroy
5459
```

code/terraform/04-terraform-module/module-example/prod/services/webserver-cluster/README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ For more info, please see Chapter 4, "How to Create Reusable Infrastructure with
1313
## Pre-requisites
1414

1515
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
16-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1716
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1817
* You must deploy the MySQL database in [data-stores/mysql](../../data-stores/mysql) BEFORE deploying the
1918
templates in this folder.
@@ -35,12 +34,6 @@ export AWS_ACCESS_KEY_ID=(your access key id)
3534
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3635
```
3736

38-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
39-
40-
```hcl
41-
bucket = "(YOUR_BUCKET_NAME)"
42-
```
43-
4437
In `vars.tf`, fill in the name of the S3 bucket and key where the remote state is stored for the MySQL database
4538
(you must deploy the templates in [data-stores/mysql](../../data-stores/mysql) first):
4639

@@ -57,17 +50,17 @@ variable "db_remote_state_key" {
5750
Validate the templates:
5851

5952
```
60-
terragrunt plan
53+
terraform plan
6154
```
6255

6356
Deploy the code:
6457

6558
```
66-
terragrunt apply
59+
terraform apply
6760
```
6861

6962
Clean up when you're done:
7063

7164
```
72-
terragrunt destroy
65+
terraform destroy
7366
```

code/terraform/04-terraform-module/module-example/stage/data-stores/mysql/README.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ For more info, please see Chapter 4, "How to Create Reusable Infrastructure with
99
## Pre-requisites
1010

1111
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
12-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1312
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1413

1514
Please note that this code was written for Terraform 0.8.x.
@@ -29,26 +28,32 @@ export AWS_ACCESS_KEY_ID=(your access key id)
2928
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3029
```
3130

32-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
33-
34-
```hcl
35-
bucket = "(YOUR_BUCKET_NAME)"
36-
```
31+
Configure [remote state storage](https://www.terraform.io/docs/state/remote/) using an [S3](https://aws.amazon.com/s3/)
32+
bucket, filling in your bucket name and region where indicated:
33+
34+
```
35+
terraform remote config \
36+
-backend=s3 \
37+
-backend-config="bucket=(YOUR_BUCKET_NAME)" \
38+
-backend-config="key=stage/data-stores/mysql/terraform.tfstate" \
39+
-backend-config="region=(YOUR_BUCKET_REGION)" \
40+
-backend-config="encrypt=true"
41+
```
3742

3843
Validate the templates:
3944

4045
```
41-
terragrunt plan
46+
terraform plan
4247
```
4348

4449
Deploy the code:
4550

4651
```
47-
terragrunt apply
52+
terraform apply
4853
```
4954

5055
Clean up when you're done:
5156

5257
```
53-
terragrunt destroy
58+
terraform destroy
5459
```

code/terraform/04-terraform-module/module-example/stage/services/webserver-cluster/README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ For more info, please see Chapter 4, "How to Create Reusable Infrastructure with
1313
## Pre-requisites
1414

1515
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
16-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1716
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1817
* You must deploy the MySQL database in [data-stores/mysql](../../data-stores/mysql) BEFORE deploying the
1918
templates in this folder.
@@ -35,12 +34,6 @@ export AWS_ACCESS_KEY_ID=(your access key id)
3534
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3635
```
3736

38-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
39-
40-
```hcl
41-
bucket = "(YOUR_BUCKET_NAME)"
42-
```
43-
4437
In `vars.tf`, fill in the name of the S3 bucket and key where the remote state is stored for the MySQL database
4538
(you must deploy the templates in [data-stores/mysql](../../data-stores/mysql) first):
4639

@@ -57,17 +50,17 @@ variable "db_remote_state_key" {
5750
Validate the templates:
5851

5952
```
60-
terragrunt plan
53+
terraform plan
6154
```
6255

6356
Deploy the code:
6457

6558
```
66-
terragrunt apply
59+
terraform apply
6760
```
6861

6962
Clean up when you're done:
7063

7164
```
72-
terragrunt destroy
65+
terraform destroy
7366
```

code/terraform/04-terraform-module/multi-repo-example/live/prod/data-stores/mysql/README.md

+14-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ For more info, please see Chapter 4, "How to Create Reusable Infrastructure with
99
## Pre-requisites
1010

1111
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
12-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1312
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1413

1514
Please note that this code was written for Terraform 0.8.x.
@@ -29,26 +28,32 @@ export AWS_ACCESS_KEY_ID=(your access key id)
2928
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3029
```
3130

32-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
33-
34-
```hcl
35-
bucket = "(YOUR_BUCKET_NAME)"
36-
```
31+
Configure [remote state storage](https://www.terraform.io/docs/state/remote/) using an [S3](https://aws.amazon.com/s3/)
32+
bucket, filling in your bucket name and region where indicated:
33+
34+
```
35+
terraform remote config \
36+
-backend=s3 \
37+
-backend-config="bucket=(YOUR_BUCKET_NAME)" \
38+
-backend-config="key=prod/data-stores/mysql/terraform.tfstate" \
39+
-backend-config="region=(YOUR_BUCKET_REGION)" \
40+
-backend-config="encrypt=true"
41+
```
3742

3843
Validate the templates:
3944

4045
```
41-
terragrunt plan
46+
terraform plan
4247
```
4348

4449
Deploy the code:
4550

4651
```
47-
terragrunt apply
52+
terraform apply
4853
```
4954

5055
Clean up when you're done:
5156

5257
```
53-
terragrunt destroy
58+
terraform destroy
5459
```

code/terraform/04-terraform-module/multi-repo-example/live/prod/services/webserver-cluster/README.md

+3-10
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ For more info, please see Chapter 4, "How to Create Reusable Infrastructure with
1414
## Pre-requisites
1515

1616
* You must have [Terraform](https://www.terraform.io/) installed on your computer.
17-
* You must have [terragrunt](https://github.com/gruntwork-io/terragrunt) installed on your computer.
1817
* You must have an [Amazon Web Services (AWS) account](http://aws.amazon.com/).
1918
* You must deploy the MySQL database in [data-stores/mysql](../../data-stores/mysql) BEFORE deploying the
2019
templates in this folder.
@@ -36,12 +35,6 @@ export AWS_ACCESS_KEY_ID=(your access key id)
3635
export AWS_SECRET_ACCESS_KEY=(your secret access key)
3736
```
3837

39-
Fill in the name of an [S3](https://aws.amazon.com/s3/) bucket to use for remote state storage in `.terragrunt`:
40-
41-
```hcl
42-
bucket = "(YOUR_BUCKET_NAME)"
43-
```
44-
4538
In `vars.tf`, fill in the name of the S3 bucket and key where the remote state is stored for the MySQL database
4639
(you must deploy the templates in [data-stores/mysql](../../data-stores/mysql) first):
4740

@@ -58,17 +51,17 @@ variable "db_remote_state_key" {
5851
Validate the templates:
5952

6053
```
61-
terragrunt plan
54+
terraform plan
6255
```
6356

6457
Deploy the code:
6558

6659
```
67-
terragrunt apply
60+
terraform apply
6861
```
6962

7063
Clean up when you're done:
7164

7265
```
73-
terragrunt destroy
66+
terraform destroy
7467
```

0 commit comments

Comments
 (0)