Files
opentf/website/source/docs/state/remote/manta.html.md
Cameron Watters b4eb63d710 state/remote: New provider - manta
- add remote state provider backed by Joyent's Manta
- add documentation of Manta remote state provider
- explicitly check for passphrase-protected SSH keys, which are currently
  unsupported, and generate a more helpful error (borrowed from Packer's
  solution to the same problem):
  https://github.com/mitchellh/packer/blob/master/common/ssh/key.go#L27
2016-09-14 20:44:52 +01:00

1.3 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
remotestate Remote State Backend: manta docs-state-remote-manta Terraform can store the state remotely, making it easier to version and work with in a team.

manta

Stores the state as an artifact in Manta.

Example Usage

terraform remote config \
	-backend=manta \
	-backend-config="path=random/path" \
  -backend-config="objecName=terraform.tfstate"

Example Referencing

data "terraform_remote_state" "foo" {
	backend = "manta"
	config {
		path = "random/path"
    objectName = "terraform.tfstate"
	}
}

Configuration variables

The following configuration options are supported:

  • path - (Required) The path where to store the state file
  • objectName - (Optional) The name of the state file (defaults to terraform.tfstate)

The following Manta environment variables are supported:

  • MANTA_URL - (Required) The API endpoint
  • MANTA_USER - (Required) The Manta user
  • MANTA_KEY_ID - (Required) The MD5 fingerprint of your SSH key
  • MANTA_KEY_MATERIAL - (Required) The path to the private key for accessing Manta (must align with the MANTA_KEY_ID). This key must not be protected by passphrase.