From ebb8cb7aad3a0063d1b75d05d5ecac0ce46d4d4d Mon Sep 17 00:00:00 2001 From: Masayuki Morita Date: Wed, 31 May 2023 17:19:01 +0900 Subject: [PATCH] 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. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a86f25..c50523a 100644 --- a/README.md +++ b/README.md @@ -100,8 +100,8 @@ $ docker-compose run --rm tfmigrate /bin/bash In the sandbox environment, create and initialize a working directory from test fixtures: ``` -# mkdir -p tmp/dir1 && cd tmp/dir1 -# terraform init -from-module=../../test-fixtures/backend_s3/ +# mkdir -p tmp && cp -pr test-fixtures/backend_s3 tmp/dir1 && cd tmp/dir1 +# terraform init # cat main.tf ```