Skip to content

Commit e5c3be2

Browse files
committed
Import of service instance sharing resource. documentation
1 parent 7464ceb commit e5c3be2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/resources/service_instance_sharing.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,25 @@ resource "cloudfoundry_service_instance_sharing" "instance_sharing" {
5151
- `service_instance` (String) The ID of the service instance to share.
5252
- `spaces` (Set of String) The IDs of the spaces to share the service instance with.
5353

54+
### Read-Only
55+
56+
- `id` (String) The GUID of the object. This will be the same as the service_instance GUID.
57+
58+
## Import
59+
60+
Import is supported using the following syntax:
61+
62+
```terraform
63+
# terraform import cloudfoundry_service_instance_sharing.<resource_name> <service_instance_guid>
64+
65+
terraform import cloudfoundry_service_instance_sharing.my_instance_sharing a1b2c3d4-5678-90ab-cdef-12345678abcd
66+
```
67+
68+
For Terraform 1.5+ users, you can also use the newer import blocks syntax:
69+
70+
```terraform
71+
import {
72+
to = cloudfoundry_service_instance_sharing.my_instance_sharing
73+
id = "a1b2c3d4-5678-90ab-cdef-12345678abcd"
74+
}
75+
```

0 commit comments

Comments
 (0)