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: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ Overview:
12
12
*`project-one` is a minimal Terraform 0.13.7 project that creates `foo.txt` and
13
13
`bar.txt` files and uses `s3://tfmigrate-demo/project-one/terraform.tfstate` as
14
14
its remote state backend.
15
-
*`project-two` is a minimal Terraform 1.4.6 project that a `baz.txt` file and uses
16
-
`bar.txt`files and uses `s3://tfmigrate-demo/project-two/terraform.tfstate` as
17
-
its remote state backend.
15
+
*`project-two` is a minimal Terraform 1.4.6 project that creates a `baz.txt` file
16
+
and uses `bar.txt`file and uses `s3://tfmigrate-demo/project-two/terraform.tfstate`
17
+
as its remote state backend.
18
18
*`project-one` and `project-two` each feature a `.terraform-version` file. This
19
19
ensures [tfenv](https://github.com/tfutils/tfenv) selects the proper Terraform
20
20
for use in each project.
@@ -26,6 +26,8 @@ See [PR 2](https://github.com/mdb/tfmigrate-demo/pull/2) for an example GitHub
26
26
Actions workflow that fails its `tfmigrate plan` step. See [PR 3](https://github.com/mdb/tfmigrate-demo/pull/3) for an example
27
27
GitHub Actions workflow that successfully performs a `tfmigrate apply`.
28
28
29
+
See `.github/workflows/pr.yaml` for the GitHub Actions workflow configuration.
30
+
29
31
## More detailed problem statement
30
32
31
33
How can we codify and automate the migration of a Terraform-managed
@@ -39,14 +41,16 @@ with [tfenv](https://github.com/tfutils/tfenv).
39
41
40
42
## See the demo in GitHub Actions
41
43
42
-
The workflow described in "Try the demo for yourself" (below) is automated and demo'd in [GitHub Actions](https://github.com/mdb/tfmigrate-demo/actions).
44
+
The workflow described in "Try the demo for yourself" (below) is automated and demoed in [GitHub Actions](https://github.com/mdb/tfmigrate-demo/actions).
43
45
44
46
[PR 2](https://github.com/mdb/tfmigrate-demo/pull/2) triggers an example GitHub
45
47
Actions workflow that fails its `tfmigrate plan` step: https://github.com/mdb/tfmigrate-demo/actions/runs/5754942633
46
48
47
49
[PR 3](https://github.com/mdb/tfmigrate-demo/pull/3) triggers an example GitHub
48
50
Actions workflow that successfully performs a `tfmigrate apply` step: https://github.com/mdb/tfmigrate-demo/actions/runs/5754946044
49
51
52
+
See `.github/workflows/pr.yaml` for the GitHub Actions workflow configuration.
53
+
50
54
## Try the demo yourself locally
51
55
52
56
### Install dependencies
@@ -76,9 +80,6 @@ Create a `localstack` `tfmigrate-demo` S3 bucket. This will be used to host
76
80
make bootstrap
77
81
```
78
82
79
-
NOTE: This may not actually work; I've only been able to use a real AWS S3
80
-
bucket.
81
-
82
83
### `terraform apply``project-one`
83
84
84
85
Initially, `apply`-ing `project-one` results in the creation of 2 files in the
0 commit comments