Skip to content

Commit 9d6cda7

Browse files
authored
Merge branch 'stackitcloud:main' into main
2 parents 2e059f2 + 1444376 commit 9d6cda7

172 files changed

Lines changed: 4327 additions & 894 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @marceljk @bahkauv70 @Fyusel @rubenhoenle

CONTRIBUTION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (r *barResource) Configure(ctx context.Context, req resource.ConfigureReque
124124
} else {
125125
apiClient, err = foo.NewAPIClient(
126126
config.WithCustomAuth(providerData.RoundTripper),
127-
config.WithRegion(providerData.Region),
127+
config.WithRegion(providerData.DefaultRegion),
128128
)
129129
}
130130

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ lint: lint-golangci-lint lint-tf
2323
generate-docs:
2424
@echo "Generating documentation with tfplugindocs"
2525
@$(SCRIPTS_BASE)/tfplugindocs.sh
26+
# workaround until STACKITTPR-165 will be resolved
27+
@git apply $(SCRIPTS_BASE)/docs.patch
2628

2729
build:
2830
@go build -o bin/terraform-provider-stackit

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,25 @@ To use beta resources in the STACKIT Terraform provider, follow these steps:
172172
173173
For more details, please refer to the [beta resources configuration guide](https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources).
174174

175+
## Opting into Experiments
176+
177+
Experiments are features that are even less mature and stable than Beta Resources. While there is some assumed stability in beta resources, will have to expect breaking changes while using experimental resources. Experimental Resources do not come with any support or warranty.
178+
179+
To enable experiments set the experiments field in the provider definition:
180+
181+
```hcl
182+
provider "stackit" {
183+
region = "eu01"
184+
experiments = ["iam"]
185+
}
186+
```
187+
188+
### Available Experiments
189+
190+
#### `iam`
191+
192+
Enables IAM management features in the Terraform provider. The underlying IAM API is expected to undergo a redesign in the future, which leads to it being considered experimental.
193+
175194
## Acceptance Tests
176195

177196
Terraform acceptance tests are run using the command `make test-acceptance-tf`. For all services,

docs/data-sources/objectstorage_bucket.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ data "stackit_objectstorage_bucket" "example" {
2626

2727
- `name` (String) The bucket name. It must be DNS conform.
2828
- `project_id` (String) STACKIT Project ID to which the bucket is associated.
29+
30+
### Optional
31+
2932
- `region` (String) The resource region. If not defined, the provider region is used.
3033

3134
### Read-Only
3235

3336
- `id` (String) Terraform's internal data source identifier. It is structured as "`project_id`,`name`".
3437
- `url_path_style` (String)
3538
- `url_virtual_hosted_style` (String)
36-
37-

docs/data-sources/objectstorage_credential.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ data "stackit_objectstorage_credentials_group" "example" {
2828
- `credential_id` (String) The credential ID.
2929
- `credentials_group_id` (String) The credential group ID.
3030
- `project_id` (String) STACKIT Project ID to which the credential group is associated.
31+
32+
### Optional
33+
3134
- `region` (String) The resource region. If not defined, the provider region is used.
3235

3336
### Read-Only
@@ -37,5 +40,3 @@ data "stackit_objectstorage_credentials_group" "example" {
3740
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`credentials_group_id`,`credential_id`".
3841
- `name` (String)
3942
- `secret_access_key` (String, Sensitive)
40-
41-

docs/data-sources/objectstorage_credentials_group.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ data "stackit_objectstorage_credentials_group" "example" {
2525
### Required
2626

2727
- `project_id` (String) Object Storage Project ID to which the credentials group is associated.
28-
- `region` (String) The resource region. If not defined, the provider region is used.
2928

3029
### Optional
3130

3231
- `credentials_group_id` (String) The credentials group ID.
3332
- `name` (String) The credentials group's display name.
33+
- `region` (String) The resource region. If not defined, the provider region is used.
3434

3535
### Read-Only
3636

3737
- `id` (String) Terraform's internal data source identifier. It is structured as "`project_id`,`credentials_group_id`".
3838
- `urn` (String) Credentials group uniform resource name (URN)
39-
40-

docs/data-sources/postgresflex_database.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ data "stackit_postgresflex_database" "example" {
2929
- `instance_id` (String) ID of the Postgres Flex instance.
3030
- `project_id` (String) STACKIT project ID to which the instance is associated.
3131

32+
### Optional
33+
34+
- `region` (String) The resource region. If not defined, the provider region is used.
35+
3236
### Read-Only
3337

34-
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`instance_id`,`database_id`".
38+
- `id` (String) Terraform's internal resource ID. It is structured as "`project_id`,`region`,`instance_id`,`database_id`".
3539
- `name` (String) Database name.
3640
- `owner` (String) Username of the database owner.

docs/data-sources/postgresflex_instance.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ data "stackit_postgresflex_instance" "example" {
2727
- `instance_id` (String) ID of the PostgresFlex instance.
2828
- `project_id` (String) STACKIT project ID to which the instance is associated.
2929

30+
### Optional
31+
32+
- `region` (String) The resource region. If not defined, the provider region is used.
33+
3034
### Read-Only
3135

3236
- `acl` (List of String) The Access Control List (ACL) for the PostgresFlex instance.
3337
- `backup_schedule` (String)
3438
- `flavor` (Attributes) (see [below for nested schema](#nestedatt--flavor))
35-
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`instance_id`".
39+
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`region`,`instance_id`".
3640
- `name` (String) Instance name.
3741
- `replicas` (Number)
3842
- `storage` (Attributes) (see [below for nested schema](#nestedatt--storage))

docs/data-sources/postgresflex_user.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ data "stackit_postgresflex_user" "example" {
2929
- `project_id` (String) STACKIT project ID to which the instance is associated.
3030
- `user_id` (String) User ID.
3131

32+
### Optional
33+
34+
- `region` (String) The resource region. If not defined, the provider region is used.
35+
3236
### Read-Only
3337

3438
- `host` (String)
35-
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`instance_id`,`user_id`".
39+
- `id` (String) Terraform's internal data source. ID. It is structured as "`project_id`,`region`,`instance_id`,`user_id`".
3640
- `port` (Number)
3741
- `roles` (Set of String)
3842
- `username` (String)

0 commit comments

Comments
 (0)