79799188

Date: 2025-10-24 21:53:49
Score: 2.5
Natty:
Report link
# download the state from remote
terraform state pull > terraform.tfstate

# instruct the terraform to init the new backend
terraform init \
  -backend-config="bucket=${TFSTATE_BUCKET}" \
  -backend-config="key=${TFSTATE_KEY}" \
  -backend-config="region=${TFSTATE_REGION}"
  -migrate-state

ref

  1. https://stackoverflow.com/a/73758453/2876087
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alpha