Moving Resources in Remote State - podcast episode cover

Moving Resources in Remote State

Nov 25, 202019 minSeason 1Ep. 161
--:--
--:--
Listen in podcast apps:

Episode description

This is based off a viewer question I received via Twitter. They wanted to know about moving resources from one configuration to another when using remote state. How can they do this without recreating anything? Specifically, they have resources deployed in two regions of AWS, with the remote state being stored in a single S3 bucket. They would like to split the state file into two S3 buckets, each in the region associated with the resources. In this video, I will show how to do exactly that.

Here's a really good Medium post that also details the process, including what to do if you have an existing state file: https://medium.com/@lynnlin827/moving-terraform-resources-states-from-one-remote-state-to-another-c76f8b76a996

-----------------------------------------------------------------------------------------------------

Patreon: https://www.patreon.com/nedinthecloud

Website: https://nedinthecloud.com

Pluralsight: https://app.pluralsight.com/profile/author/edward-bellavance

GitHub: https://github.com/ned1313

Moving Resources in Remote State | Daily Check-In with Ned1313 podcast - Listen or read transcript on Metacast