terraform/website/source/docs/backends/types/http.html.md

1.0 KiB

layout page_title sidebar_current description
backend-types Backend Type: http docs-backends-types-standard-http Terraform can store state remotely at any valid HTTP endpoint.

http

Kind: Standard (with no locking)

Stores the state using a simple REST client.

State will be fetched via GET, updated via POST, and purged with DELETE.

Example Usage

terraform {
  backend "http" {
    address = "http://myrest.api.com"
  }
}

Example Referencing

data "terraform_remote_state" "foo" {
	backend = "http"
	config {
		address = "http://my.rest.api.com"
	}
}

Configuration variables

The following configuration options are supported:

  • address - (Required) The address of the REST endpoint
  • username - (Optional) The username for HTTP basic authentication
  • password - (Optional) The password for HTTP basic authentication
  • skip_cert_verification - (Optional) Whether to skip TLS verification. Defaults to false.