The Consul snapshot resource allows users to manage Consul snapshots of an HCP Consul cluster. Snapshots currently have a retention policy of 30 days.
// Note: Snapshots currently have a retention policy of 30 days. After that time, any Terraform
// state refresh will note that a new snapshot resource will be created.
resource "hcp_consul_snapshot" "example" {
cluster_id = "consul-cluster"
snapshot_name = "my-snapshot"
}
cluster_id
(String) The ID of the HCP Consul cluster.snapshot_name
(String) The name of the snapshot.project_id
(String) The ID of the HCP project where the HCP Consul cluster is located.
If not specified, the project specified in the HCP Provider config block will be used, if configured.
If a project is not configured in the HCP Provider config block, the oldest project in the organization will be used.timeouts
(Block, Optional) (see below for nested schema)consul_version
(String) The version of Consul at the time of snapshot creation.id
(String) The ID of this resource.organization_id
(String) The ID of the HCP organization where the project the HCP Consul cluster is located.restored_at
(String) Timestamp of when the snapshot was restored. If the snapshot has not been restored, this field will be blank.size
(Number) The size of the snapshot in bytes.snapshot_id
(String) The ID of the Consul snapshotstate
(String) The state of an HCP Consul snapshot.timeouts
Optional:
create
(String)default
(String)delete
(String)update
(String)