Skip to content

Instantly share code, notes, and snippets.

@rch317
Created January 3, 2017 21:49
Show Gist options
  • Save rch317/089ab1775c842d3df69ed6716c2e674f to your computer and use it in GitHub Desktop.
Save rch317/089ab1775c842d3df69ed6716c2e674f to your computer and use it in GitHub Desktop.
remote state
"remote": {
"type": "s3",
"config": {
"bucket": "s3-bucket",
"key": "/path/to/terraform.tfstate",
"region": "us-east-1"
}
},
@rch317
Copy link
Author

rch317 commented Jan 3, 2017

When converting to a remote state file, continually kept getting the following error:

Error loading Terraform: Remote state cache has no remote info

While I'm sure there is a more appropriate way of resolving this issue, my solution was to add the above snippet, with correct values, to the state file itself. In my state, this fell right after the "lineage" entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment