Skip to content

Commit 8348182

Browse files
committed
Adding the changes in template for virtual cluster documentation
1 parent 81f4568 commit 8348182

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

templates/resources/virtual_cluster.md.tmpl

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,28 @@ resource "spectrocloud_virtual_cluster" "cluster" {
4646
4747
```
4848

49+
## Import
50+
51+
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import)
52+
to import the resource {{ .Name }} by using its `id` with the Palette `context` separated by a colon. For example:
53+
54+
```terraform
55+
import {
56+
to = {{ .Name }}.example
57+
id = "example_id:context"
58+
}
59+
```
60+
61+
Using `terraform import`, import the cluster using the `cluster_name` or `id` colon separated with `context`. For example:
62+
63+
```console
64+
terraform import {{ .Name }}.example example_id
65+
```
66+
67+
```console
68+
terraform import {{ .Name }}.example cluster_name
69+
```
70+
71+
Refer to the [Import section](/docs#import) to learn more.
4972

5073
{{ .SchemaMarkdown | trimspace }}

0 commit comments

Comments
 (0)