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.

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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠