You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: infrastructure-as-code/terraform-0.12-examples/README.md
+8-14Lines changed: 8 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,23 @@
1
1
# Terraform 0.12 Examples
2
2
This repository contains some Terraform 0.12 examples that demonstrate new HCL features and other Terraform enhancements that are being added to Terraform 0.12. Each sub-directory contains a separate example that can be run separately from the others by running `terraform init` followed by `terraform apply`.
3
3
4
-
These examples have been tested with terraform 0.12 beta1.
4
+
These examples have been tested with terraform 0.12.3.
5
5
6
6
The examples are:
7
7
1.[First Class Expressions](./first-class-expressions)
8
8
1.[For Expressions](./for-expressions)
9
9
1.[Dynamic Blocks and Splat Expresions](./dynamic-blocks-and-splat-expressions)
1. Determine the location of the Terraform binary in your path. On a Mac of Linux machine, run `which terraform`. On a Windows machine, run `where terraform`.
16
-
1. Move your current copy of the Terraform binary to a different location outside your path and remember where so you can restore it after using the Terraform 0.12 beta. Also note the old location.
17
+
1. Move your current copy of the Terraform binary to a different location outside your path and remember where so you can restore it after using the Terraform 0.12 binary if you want to revert back to an earlier version. Also note the old location.
17
18
1. On a Mac or Linux machine, rename the `~/.terraform.d` directory to something like `.terraformd`; on a Windows machine, rename `%USERPROFILE%\terraform.d` to `%USERPROFILE%\terraformd`. This way, you can restore the directory (if anything was in it) after the class.
18
-
1. Download the Terraform 0.12 beta1 zip file for your OS from https://releases.hashicorp.com/terraform/0.12.0-beta1.
19
+
1. Download the current Terraform 0.12.x zip file for your OS from https://www.terraform.io/downloads.html.
19
20
1. Unzip the file and copy the terraform or terraform.exe binary to the location where your original terraform binary was. If you did not previously have the terraform binary deployed, copy it to a location within your path or edit your PATH environment variable to include the directory you put it in.
20
-
1. Download the AWS and template providers for your OS from the [AWS provider](http://terraform-0.12.0-dev-snapshots.s3-website-us-west-2.amazonaws.com/terraform-provider-aws/1.60.0-dev20190216H00-dev/) and the [Template provider](http://terraform-0.12.0-dev-snapshots.s3-website-us-west-2.amazonaws.com/terraform-provider-template/2.1.0-dev20190216H00-dev/) directories.
21
-
1. Unzip the provider binaries from the zip files.
22
-
1. Create a directory to contain the providers:
23
-
1. On a Mac, run `mkdir -p ~/.terraform.d/plugins/darwin_amd64`.
24
-
1. On a Linux machine, run `mkdir -p ~/.terraform.d/plugins/linux_amd64`.
25
-
1. On a Windows laptop, run `mkdir %USERPROFILE%\terraform.d\plugins\windows_amd64`.
26
-
1. Copy the AWS and template provider binaries to the directory you created.
27
21
1. Clone this repository to your laptop with the command `git clone https://github.com/hashicorp/terraform-guides.git`.
28
22
1. Use `cd terraform-guides/infrastructure-as-code/terraform-0.12-examples` to change into the directory containing the Terraform 0.12 examples.
29
23
@@ -54,6 +48,9 @@ See the example's [README.md](./for-expressions/README.md).
54
48
## Dynamic Blocks and Splat Expressions Example
55
49
See the example's [README.md](./dynamic-blocks-and-splat-expressions/README.md).
56
50
51
+
## Advanced Dynamic Blocks Example
52
+
See the example's [README.md](./advanced-dynamic-blocks/README.md).
53
+
57
54
## Rich Value Types
58
55
See the example's [README.md](./rich-value-types/README.md).
59
56
@@ -62,6 +59,3 @@ See the example's [README.md](./new-template-syntax/README.md).
62
59
63
60
## Reliable JSON Syntax
64
61
See the example's [README.md](./reliable-json-syntax/README.md).
65
-
66
-
## Cleanup
67
-
When done with the Terraform 0.12 beta, delete the terraform.d or .terraform.d directory under your home directory and rename the original version of the directory to what it was before. Replace the Terraform 0.12 binary with the Terraform binary you were previously using in your path.
0 commit comments