Skip to content
This repository was archived by the owner on Dec 5, 2020. It is now read-only.

Files

Latest commit

f7b16ff · Dec 19, 2017

History

History
48 lines (35 loc) · 1.21 KB

volume.html.markdown

File metadata and controls

48 lines (35 loc) · 1.21 KB
layout page_title sidebar_current description
rancher
Rancher: rancher_volume
docs-rancher-resource-volume
Provides a Rancher Volume resource. This can be used to create volumes for rancher environments and retrieve their information.

rancher_volumes

Provides a Rancher Volume resource. This can be used to create volumes for rancher environments and retrieve their information.

Example Usage

# Create a new Rancher Volume
resource rancher_volume "foo" {
  name           = "foo"
  environment_id = "${rancher_environment.test.id}"
  driver         = "rancher-nfs"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the volume.
  • description - (Optional) A description of the volume.
  • environment_id - (Required) The ID of the environment to create the volume for.
  • driver - (Required) The volume driver.

Import

Volumes can be imported using the Volume ID in the format <environment_id>/<volume_id>

$ terraform import rancher_volume.mysec 1a5/1v123456

If the credentials for the Rancher provider have access to the global API, then environment_id can be omitted e.g.

$ terraform import rancher_volume.mysec 1se10