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

Written by KyMidd | Published 2019/10/14
Tech Story Tags: aws | terraform | terraforming | automation | cloud | terraform-state | code | latest-tech-stories

TLDR 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.via the TL;DR App

no story

Published by HackerNoon on 2019/10/14