paint-brush
How To Sync Terraform Config And .tfstate File For Existing AWS Resourcesby@KyMidd
339 reads
339 reads

How To Sync Terraform Config And .tfstate File For Existing AWS Resources

by KylerOctober 14th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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.
featured image - How To Sync Terraform Config And .tfstate File For Existing AWS Resources
Kyler HackerNoon profile picture
Kyler

Kyler

@KyMidd

L O A D I N G
. . . comments & more!

About Author

Kyler HackerNoon profile picture
Kyler@KyMidd

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Coffee-web