Hello. I’m in the process of migrating to backend = "s3"
terraform_remote_storage types. After confirming my states were perfectly aligned. I change from local storage to remote
If i make a change locally, run a plan, and an apply, i see an update in a local terraform.tfsate, but not in s3 (i realize modified times can take a while)
My migration from local to remote was along the lines of
aws s3 cp terraform.tfstate s3://mybucket/environment/terraform.state
for each environment and then change my data sources to:
data "terraform_remote_state" "staging" {
backend = "s3"
config = {
bucket = "mybucket"
key = "staging/terraform.tfstate"
region = "us-east-1"
}
}
Hopefully this will lead to an RTFM link, but i have not found it. Thanks!