Skip to content

Commit ebb8cb7

Browse files
committed
Avoid using terraform init -from-module
Starting from Terraform v1.5-beta, terraform init -from-module emits a warning for ignoring backend config. I asked about this issue in the upstream, and it turned out that the option should not use except for Terragrunt. https://github.com/hashicorp/terraform/issues/33276 So, I fixed the getting started guide to use simply copying and initializing instead of using the option.
1 parent 4d3d333 commit ebb8cb7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ $ docker-compose run --rm tfmigrate /bin/bash
100100
In the sandbox environment, create and initialize a working directory from test fixtures:
101101

102102
```
103-
# mkdir -p tmp/dir1 && cd tmp/dir1
104-
# terraform init -from-module=../../test-fixtures/backend_s3/
103+
# mkdir -p tmp && cp -pr test-fixtures/backend_s3 tmp/dir1 && cd tmp/dir1
104+
# terraform init
105105
# cat main.tf
106106
```
107107

0 commit comments

Comments
 (0)
⌂ 换网址