| layout | remotestate |
|---|---|
| page_title | Remote State Backend: atlas |
| sidebar_current | docs-state-remote-atlas |
| description | Terraform can store the state remotely, making it easier to version and work with in a team. |
Stores the state in Atlas.
You can create a new environment in the Environments section and generate new token in the Tokens page under Settings.
terraform remote config \
-backend=atlas \
-backend-config="name=bigbang/example" \
-backend-config="access_token=X2iTFefU5aWOjg.atlasv1.YaDa" \data "terraform_remote_state" "foo" {
backend = "atlas"
config {
name = "bigbang/example"
access_token = "X2iTFefU5aWOjg.atlasv1.YaDa"
}
}The following configuration options / environment variables are supported:
name- (Required) Full name of the environment (<username>/<name>)access_token/ATLAS_TOKEN- (Required) Atlas API tokenaddress- (Optional) Address to alternative Atlas location (Atlas Enterprise endpoint)