Duplicate an existing serverless app infra(built in the console management) using terraformer

0

Hello !I have already an AWS infrastructure built manually. Now i want to practise infrastructure as code so i used a tool called terraformer to extract the existing infra as code. But i can not use this code to create an infra in an other AWS account using terraform command. Could you help me please? when i run terraform apply i have the error : can not read state file

  • if you want to load existing infra use terraform import command. don't touch the state file at any case.

質問済み 2年前231ビュー
1回答
1

Hey - the terraform state file is unique to each deployment. It sounds like your new deployment is trying to reach the old state file.

I'd recommend going through the HashiCorp AWS Terraform tutorials and learning the product, before using another tool to extract IaC from an existing account.

profile pictureAWS
Jake
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ