Daily Check-In with Ned1313

Moving Resources in Remote State


Listen Later

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
View all episodesView all episodes
Download on the App Store

Daily Check-In with Ned1313By Ned Bellavance

  • 5
  • 5
  • 5
  • 5
  • 5

5

3 ratings