How To Sync Terraform Config And .tfstate File For Existing AWS Resources
by KylerOctober 14th, 2019 Too Long; Didn't Read
The “import” function exists within Terraform for the AWS cloud, but it’s dependent on a state file that is local, and only reflects resources created by terraform. The tool is not able to reach out to a cloud account and create a configuration and.tfstate file based on the existing resources that were built via another method. I’m publishing my code which allows you to create a. single (monolithic) configuration file for each existing resource in an AWS region. The code assumes you don’t have an existing. existing. terraforming. file.