Skip to content

Commit 1ecd53c

Browse files
authored
Merge branch 'stackitcloud:main' into main
2 parents a53492a + dadea7a commit 1ecd53c

File tree

133 files changed

+1660
-253
lines changed

Some content is hidden

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

133 files changed

+1660
-253
lines changed

.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

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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ 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

docs/data-sources/objectstorage_credential.md

Lines changed: 3 additions & 0 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

docs/data-sources/objectstorage_credentials_group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ 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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "stackit_public_ip_ranges Data Source - stackit"
4+
subcategory: ""
5+
description: |-
6+
A list of all public IP ranges that STACKIT uses.
7+
~> 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.
8+
---
9+
10+
# stackit_public_ip_ranges (Data Source)
11+
12+
A list of all public IP ranges that STACKIT uses.
13+
14+
~> 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.
15+
16+
## Example Usage
17+
18+
```terraform
19+
data "stackit_public_ip_ranges" "example" {}
20+
```
21+
22+
<!-- schema generated by tfplugindocs -->
23+
## Schema
24+
25+
### Read-Only
26+
27+
- `id` (String) Terraform's internal resource ID. It takes the values of "`public_ip_ranges.*.cidr`".
28+
- `public_ip_ranges` (Attributes List) A list of all public IP ranges. (see [below for nested schema](#nestedatt--public_ip_ranges))
29+
30+
<a id="nestedatt--public_ip_ranges"></a>
31+
### Nested Schema for `public_ip_ranges`
32+
33+
Read-Only:
34+
35+
- `cidr` (String) Classless Inter-Domain Routing (CIDR)

docs/data-sources/sqlserverflex_instance.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ data "stackit_sqlserverflex_instance" "example" {
2727
- `instance_id` (String) ID of the SQLServer Flex 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 SQLServer Flex instance.
3337
- `backup_schedule` (String) The backup schedule. Should follow the cron scheduling system format (e.g. "0 0 * * *").
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
- `options` (Attributes) Custom parameters for the SQLServer Flex instance. (see [below for nested schema](#nestedatt--options))
3842
- `replicas` (Number)

docs/data-sources/sqlserverflex_user.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ data "stackit_sqlserverflex_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)
37-
- `roles` (Set of String) Database access levels for the user. Possible values: [`##STACKIT_LoginManager##`, `##STACKIT_DatabaseManager##`]
41+
- `roles` (Set of String) Database access levels for the user.
3842
- `username` (String) Username of the SQLServer Flex instance.

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ Note: AWS specific checks must be skipped as they do not work on STACKIT. For de
154154
- `argus_custom_endpoint` (String, Deprecated) Custom endpoint for the Argus service
155155
- `authorization_custom_endpoint` (String) Custom endpoint for the Membership service
156156
- `credentials_path` (String) Path of JSON from where the credentials are read. Takes precedence over the env var `STACKIT_CREDENTIALS_PATH`. Default value is `~/.stackit/credentials.json`.
157+
- `default_region` (String) Region will be used as the default location for regional services. Not all services require a region, some are global
157158
- `dns_custom_endpoint` (String) Custom endpoint for the DNS service
158159
- `enable_beta_resources` (Boolean) Enable beta resources. Default is false.
160+
- `experiments` (List of String) Enables experiments. These are unstable features without official support. More information can be found in the README. Available Experiments: [iam]
159161
- `iaas_custom_endpoint` (String) Custom endpoint for the IaaS service
160162
- `loadbalancer_custom_endpoint` (String) Custom endpoint for the Load Balancer service
161163
- `logme_custom_endpoint` (String) Custom endpoint for the LogMe service
@@ -169,7 +171,7 @@ Note: AWS specific checks must be skipped as they do not work on STACKIT. For de
169171
- `private_key_path` (String) Path for the private RSA key used for authentication, relevant for the key flow. It takes precedence over the private key that is included in the service account key.
170172
- `rabbitmq_custom_endpoint` (String) Custom endpoint for the RabbitMQ service
171173
- `redis_custom_endpoint` (String) Custom endpoint for the Redis service
172-
- `region` (String) Region will be used as the default location for regional services. Not all services require a region, some are global
174+
- `region` (String, Deprecated) Region will be used as the default location for regional services. Not all services require a region, some are global
173175
- `resourcemanager_custom_endpoint` (String) Custom endpoint for the Resource Manager service
174176
- `secretsmanager_custom_endpoint` (String) Custom endpoint for the Secrets Manager service
175177
- `server_backup_custom_endpoint` (String) Custom endpoint for the Server Backup service

0 commit comments

Comments
 (0)