@@ -40,70 +40,16 @@ below this section for more details.
4040When remote storage is disabled, the existing remote state is migrated
4141to a local file. This defaults to the ` -state ` path during restore.
4242
43- The following backends are supported:
44-
45- * Atlas - Stores the state in Atlas. Requires the ` name ` and ` access_token `
46- variables. The ` address ` variable can optionally be provided.
47-
48- * Consul - Stores the state in the KV store at a given path. Requires the
49- ` path ` variable. Supports the ` CONSUL_HTTP_TOKEN ` environment variable
50- for specifying access credentials, or the ` access_token ` variable may
51- be provided, but this is not recommended since it would be included in
52- cleartext inside the persisted, shard state. Other supported parameters
53- include:
54- * ` address ` - DNS name and port of your Consul endpoint specified in the
55- format ` dnsname:port ` . Defaults to the local agent HTTP listener. This
56- may also be specified using the ` CONSUL_HTTP_ADDR ` environment variable.
57- * ` scheme ` - Specifies what protocol to use when talking to the given
58- ` address ` , either ` http ` or ` https ` . SSL support can also be triggered
59- by setting then environment variable ` CONSUL_HTTP_SSL ` to ` true ` .
60- * ` http_auth ` - HTTP Basic Authentication credentials to be used when
61- communicating with Consul, in the format of either ` user ` or ` user:pass ` .
62- This may also be specified using the ` CONSUL_HTTP_AUTH ` environment
63- variable.
64-
65- * Etcd - Stores the state in etcd at a given path.
66- Requires the ` path ` and ` endpoints ` variables. The ` username ` and ` password `
67- variables can optionally be provided. ` endpoints ` is assumed to be a
68- space-separated list of etcd endpoints.
69-
70- * S3 - Stores the state as a given key in a given bucket on Amazon S3.
71- Requires the ` bucket ` and ` key ` variables. Supports and honors the standard
72- AWS environment variables ` AWS_ACCESS_KEY_ID ` , ` AWS_SECRET_ACCESS_KEY ` ,
73- ` AWS_S3_ENDPOINT ` and ` AWS_DEFAULT_REGION ` . These can optionally be provided
74- as parameters in the ` access_key ` , ` secret_key ` , ` endpoint ` and ` region `
75- variables respectively, but passing credentials this way is not recommended
76- since they will be included in cleartext inside the persisted state.
77- Other supported parameters include:
78- * ` bucket ` - the name of the S3 bucket
79- * ` key ` - path where to place/look for state file inside the bucket
80- * ` encrypt ` - whether to enable [ server side encryption] ( https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html )
81- of the state file
82- * ` acl ` - [ Canned ACL] ( https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl )
83- to be applied to the state file.
84-
85- * Artifactory - Stores the state as an artifact in a given repository in
86- Artifactory. Requires the ` url ` , ` username ` , ` password ` , ` repo ` and ` subpath `
87- variables. Generic HTTP repositories are supported, and state from different
88- configurations may be kept at different subpaths within the repository. The URL
89- must include the path to the Artifactory installation - it will likely end in
90- ` /artifactory ` . Alternately the following environment variables can be used in
91- place of hard-coded values:
92- * ` ARTIFACTORY_USERNAME `
93- * ` ARTIFACTORY_PASSWORD `
94- * ` ARTIFACTORY_URL ` (note that this is the base url to artifactory not the full repo and subpath)
95-
96-
97- * HTTP - Stores the state using a simple REST client. State will be fetched
98- via GET, updated via POST, and purged with DELETE. Requires the ` address ` variable.
43+ Supported storage backends and supported features of those
44+ are documented in the [ Remote State] ( /docs/state/remote/index.html ) section.
9945
10046The command-line flags are all optional. The list of available flags are:
10147
102- * ` -backend=Atlas ` - The remote backend to use. Must be one of the above
48+ * ` -backend=Atlas ` - The remote backend to use. Must be one of the
10349 supported backends.
10450
10551* ` -backend-config="k=v" ` - Specify a configuration variable for a backend.
106- This is how you set the required variables for the backends above .
52+ This is how you set the required variables for the backend .
10753
10854* ` -backup=path ` - Path to backup the existing state file before
10955 modifying. Defaults to the "-state" path with ".backup" extension.
0 commit comments