Daily Check-In with Ned1313
Moving Resources in Remote State

Episode 161 · Season 1

Moving Resources in Remote State

Daily Check-In with Ned1313

19:15

About this episode

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

More from Daily Check-In with Ned1313

I hosted a podcast called Buffer Overflow for about 4 years and 200 episodes. The company I worked for took down the podcast and all of its episodes. Should I host them on my own? Would anyone listen?…

8m

I'm going to Disneyland! Er, World. I went to Disney World, and naturally it got me thinking about technology, in-groups, and market share. Sounds strange? It'll all make sense once you listen.

10m

There's an age old debate in tech about the utility of certifications. It's an argument we've had a hundred times. So let's have it again! This time I'm thinking about how a certification can help som…

10m

Is there anything inherently good about decentralization? Is one approach always more effective or equitable than the other? The realm of technology is lousy with example of both centralized and decen…

11m

Tools and technology are mostly amoral. What matters is the intent of the individual using the tool. A system is what it does, or more accurately what one does with it. Blockchain, cryptocurrency, and…

11m