Skip to content

Commit efef7ca

Browse files
committed
review feedback
1 parent b8e4c89 commit efef7ca

File tree

23 files changed

+83
-109
lines changed

23 files changed

+83
-109
lines changed

docs/data-sources/sfs_resource_pool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ data "stackit_sfs_resource_pool" "resourcepool" {
3838

3939
- `availability_zone` (String) Availability zone.
4040
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`resource_pool_id`".
41-
- `ip_acl` (List of String) SFS resource pool. Must have a region specified in the provider configuration.
41+
- `ip_acl` (List of String) List of IPs that can mount the resource pool in read-only; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
4242
- `name` (String) Name of the resource pool.
4343
- `performance_class` (String) Name of the performance class.
4444
- `performance_class_downgradable_at` (String) Time when the performance class can be downgraded again.

docs/data-sources/sfs_share.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
page_title: "stackit_sfs_share Data Source - stackit"
44
subcategory: ""
55
description: |-
6-
NFS-Share datasource schema. Must have a region specified in the provider configuration.
6+
SFS Share schema. Must have a region specified in the provider configuration.
77
~> This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
88
---
99

1010
# stackit_sfs_share (Data Source)
1111

12-
NFS-Share datasource schema. Must have a `region` specified in the provider configuration.
12+
SFS Share schema. Must have a `region` specified in the provider configuration.
1313

1414
~> This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
1515

@@ -29,7 +29,7 @@ data "stackit_sfs_share" "example" {
2929
### Required
3030

3131
- `project_id` (String) STACKIT project ID to which the share is associated.
32-
- `resource_pool_id` (String) The ID of the resource pool for the NFS share.
32+
- `resource_pool_id` (String) The ID of the resource pool for the SFS share.
3333
- `share_id` (String) share ID
3434

3535
### Optional

docs/resources/sfs_export_policy.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ resource "stackit_sfs_export_policy" "example" {
2626
}
2727
]
2828
}
29+
30+
# Only use the import statement, if you want to import an existing export policy
31+
import {
32+
to = stackit_sfs_export_policy.example
33+
id = "${var.project_id},${var.region},${var.policy_id}"
34+
}
2935
```
3036

3137
<!-- schema generated by tfplugindocs -->

docs/resources/sfs_resource_pool.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@ page_title: "stackit_sfs_resource_pool Resource - stackit"
44
subcategory: ""
55
description: |-
66
Resource-pool resource schema. Must have a region specified in the provider configuration.
7-
SFS resource pool. Must have a region specified in the provider configuration.
87
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
98
---
109

1110
# stackit_sfs_resource_pool (Resource)
1211

1312
Resource-pool resource schema. Must have a `region` specified in the provider configuration.
14-
SFS resource pool. Must have a region specified in the provider configuration.
15-
1613

1714
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
1815

@@ -31,6 +28,12 @@ resource "stackit_sfs_resource_pool" "resourcepool" {
3128
]
3229
snapshots_are_visible = true
3330
}
31+
32+
# Only use the import statement, if you want to import an existing resource pool
33+
import {
34+
to = stackit_sfs_resource_pool.resourcepool
35+
id = "${var.project_id},${var.region},${var.resource_pool_id}"
36+
}
3437
```
3538

3639
<!-- schema generated by tfplugindocs -->
@@ -39,7 +42,7 @@ resource "stackit_sfs_resource_pool" "resourcepool" {
3942
### Required
4043

4144
- `availability_zone` (String) Availability zone.
42-
- `ip_acl` (List of String) SFS resource pool. Must have a region specified in the provider configuration.
45+
- `ip_acl` (List of String) List of IPs that can mount the resource pool in read-only; IPs must have a subnet mask (e.g. "172.16.0.0/24" for a range of IPs, or "172.16.0.250/32" for a specific IP).
4346
- `name` (String) Name of the resource pool.
4447
- `performance_class` (String) Name of the performance class.
4548
- `project_id` (String) STACKIT project ID to which the resource pool is associated.

docs/resources/sfs_share.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
page_title: "stackit_sfs_share Resource - stackit"
44
subcategory: ""
55
description: |-
6-
SFS Shares. Must have a region specified in the provider configuration.
6+
SFS Share schema. Must have a region specified in the provider configuration.
77
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.
88
---
99

1010
# stackit_sfs_share (Resource)
1111

12-
SFS Shares. Must have a region specified in the provider configuration.
13-
12+
SFS Share schema. Must have a `region` specified in the provider configuration.
1413

1514
~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our [guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources) for how to opt-in to use beta resources.
1615

@@ -24,6 +23,12 @@ resource "stackit_sfs_share" "example" {
2423
export_policy = "high-performance-class"
2524
space_hard_limit_gigabytes = 32
2625
}
26+
27+
# Only use the import statement, if you want to import an existing sfs share
28+
import {
29+
to = stackit_sfs_resource_pool.resourcepool
30+
id = "${var.project_id},${var.region},${var.resource_pool_id},${var.share_id}"
31+
}
2732
```
2833

2934
<!-- schema generated by tfplugindocs -->
@@ -37,7 +42,7 @@ clients with IPs matching the IP ACL of the Resource Pool hosting this Share.
3742
You can also assign a Share Export Policy after creating the Share
3843
- `name` (String) Name of the share.
3944
- `project_id` (String) STACKIT project ID to which the share is associated.
40-
- `resource_pool_id` (String) The ID of the resource pool for the NFS share.
45+
- `resource_pool_id` (String) The ID of the resource pool for the SFS share.
4146
- `space_hard_limit_gigabytes` (Number) Space hard limit for the Share.
4247
If zero, the Share will have access to the full space of the Resource Pool it lives in.
4348
(unit: gigabytes)

examples/resources/stackit_sfs_export_policy/resource.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ resource "stackit_sfs_export_policy" "example" {
88
}
99
]
1010
}
11+
12+
# Only use the import statement, if you want to import an existing export policy
13+
import {
14+
to = stackit_sfs_export_policy.example
15+
id = "${var.project_id},${var.region},${var.policy_id}"
16+
}

examples/resources/stackit_sfs_resource_pool/resource.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ resource "stackit_sfs_resource_pool" "resourcepool" {
1010
]
1111
snapshots_are_visible = true
1212
}
13+
14+
# Only use the import statement, if you want to import an existing resource pool
15+
import {
16+
to = stackit_sfs_resource_pool.resourcepool
17+
id = "${var.project_id},${var.region},${var.resource_pool_id}"
18+
}

examples/resources/stackit_sfs_share/resource.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ resource "stackit_sfs_share" "example" {
55
export_policy = "high-performance-class"
66
space_hard_limit_gigabytes = 32
77
}
8+
9+
# Only use the import statement, if you want to import an existing sfs share
10+
import {
11+
to = stackit_sfs_resource_pool.resourcepool
12+
id = "${var.project_id},${var.region},${var.resource_pool_id},${var.share_id}"
13+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ require (
3636
github.com/stackitcloud/stackit-sdk-go/services/serverupdate v1.2.1
3737
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.1
3838
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.2.2
39-
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.1.0
39+
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.2.0
4040
github.com/stackitcloud/stackit-sdk-go/services/ske v1.4.0
4141
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.3.3
4242
github.com/teambition/rrule-go v1.8.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.1 h1:crKlHl
201201
github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.11.1/go.mod h1:QCrAW/Rmf+styT25ke8cUV6hDHpdKNmAY14kkJ3+Fd8=
202202
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.2.2 h1:s2iag/Gc4tuQH7x5I0n4mQWVhpfl/cj+SVNAFAB5ck0=
203203
github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.2.2/go.mod h1:DFEamKVoOjm/rjMwzfZK0Zg/hwsSkXOibdA4HcC6swk=
204-
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.1.0 h1:RRzwDicugcWtEEBRSVVz+Cwb2OAsxodmO4ZJoftGfB0=
205-
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.1.0/go.mod h1:XHOtGgBwwCqPSoQt2ojIRb/BeOd4kICwb9RuMXXFGt8=
204+
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.2.0 h1:DRp1p0Gb1YZSnFXgkiKTHQD9bFfqn6OC3PcsDjqGJiw=
205+
github.com/stackitcloud/stackit-sdk-go/services/sfs v0.2.0/go.mod h1:XHOtGgBwwCqPSoQt2ojIRb/BeOd4kICwb9RuMXXFGt8=
206206
github.com/stackitcloud/stackit-sdk-go/services/ske v1.4.0 h1:V6RFvybDeJvvmT3g7/BZodF0gozz3TEpahbpiTftbeY=
207207
github.com/stackitcloud/stackit-sdk-go/services/ske v1.4.0/go.mod h1:xRBgpJ8P5Nf1T5tD0tGAeNg1FNQzx5VF7qqOXt2Fp3s=
208208
github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.3.3 h1:TFefEGGxvcI7euqyosbLS/zSEOy+3JMGOirW3vNj/84=

0 commit comments

Comments
 (0)