Skip to content

Commit 4d93772

Browse files
authored
chore(docs): use new 'default_region' provider attribute (#793)
instead of deprecated 'region' attribute
1 parent 220d335 commit 4d93772

14 files changed

Lines changed: 39 additions & 39 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ To use beta resources in the STACKIT Terraform provider, follow these steps:
155155

156156
```hcl
157157
provider "stackit" {
158-
region = "eu01"
158+
default_region = "eu01"
159159
enable_beta_resources = true
160160
}
161161
```
@@ -180,7 +180,7 @@ To enable experiments set the experiments field in the provider definition:
180180

181181
```hcl
182182
provider "stackit" {
183-
region = "eu01"
183+
default_region = "eu01"
184184
experiments = ["iam"]
185185
}
186186
```

docs/guides/aws_provider_s3_stackit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
1515

1616
```hcl
1717
provider "stackit" {
18-
region = "eu01"
18+
default_region = "eu01"
1919
}
2020
```
2121

docs/guides/kubernetes_provider_ske.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This guide outlines the process of utilizing the [HashiCorp Kubernetes provider]
1515

1616
```hcl
1717
provider "stackit" {
18-
region = "eu01"
18+
default_region = "eu01"
1919
}
2020
```
2121

docs/guides/opting_into_beta_resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Set the `enable_beta_resources` option in the provider configuration. This is a
1919

2020
```hcl
2121
provider "stackit" {
22-
region = "eu01"
22+
default_region = "eu01"
2323
enable_beta_resources = true
2424
}
2525
```

docs/guides/ske_kube_state_metric_alerts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This guide explains how to configure the STACKIT Observability product to send a
1313

1414
```hcl
1515
provider "stackit" {
16-
region = "eu01"
16+
default_region = "eu01"
1717
}
1818
1919
provider "kubernetes" {

docs/guides/vault_secrets_manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This guide outlines the process of utilizing the [HashiCorp Vault provider](http
1313

1414
```hcl
1515
provider "stackit" {
16-
region = "eu01"
16+
default_region = "eu01"
1717
}
1818
```
1919

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ The STACKIT Terraform provider is the official Terraform provider to integrate a
66

77
```terraform
88
provider "stackit" {
9-
region = "eu01"
9+
default_region = "eu01"
1010
}
1111
1212
# Authentication
1313
1414
# Token flow
1515
provider "stackit" {
16-
region = "eu01"
16+
default_region = "eu01"
1717
service_account_token = var.service_account_token
1818
}
1919
2020
# Key flow
2121
provider "stackit" {
22-
region = "eu01"
22+
default_region = "eu01"
2323
service_account_key = var.service_account_key
2424
private_key = var.private_key
2525
}
2626
2727
# Key flow (using path)
2828
provider "stackit" {
29-
region = "eu01"
29+
default_region = "eu01"
3030
service_account_key_path = var.service_account_key_path
3131
private_key_path = var.private_key_path
3232
}

examples/provider/provider.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
provider "stackit" {
2-
region = "eu01"
2+
default_region = "eu01"
33
}
44

55
# Authentication
66

77
# Token flow
88
provider "stackit" {
9-
region = "eu01"
9+
default_region = "eu01"
1010
service_account_token = var.service_account_token
1111
}
1212

1313
# Key flow
1414
provider "stackit" {
15-
region = "eu01"
15+
default_region = "eu01"
1616
service_account_key = var.service_account_key
1717
private_key = var.private_key
1818
}
1919

2020
# Key flow (using path)
2121
provider "stackit" {
22-
region = "eu01"
22+
default_region = "eu01"
2323
service_account_key_path = var.service_account_key_path
2424
private_key_path = var.private_key_path
2525
}

stackit/internal/testutil/testutil.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var (
8080
func ArgusProviderConfig() string {
8181
if ArgusCustomEndpoint == "" {
8282
return `provider "stackit" {
83-
region = "eu01"
83+
default_region = "eu01"
8484
}`
8585
}
8686
return fmt.Sprintf(`
@@ -96,7 +96,7 @@ func ArgusProviderConfig() string {
9696
func ObservabilityProviderConfig() string {
9797
if ObservabilityCustomEndpoint == "" {
9898
return `provider "stackit" {
99-
region = "eu01"
99+
default_region = "eu01"
100100
}`
101101
}
102102
return fmt.Sprintf(`
@@ -134,7 +134,7 @@ func IaaSProviderConfig() string {
134134
if IaaSCustomEndpoint == "" {
135135
return `
136136
provider "stackit" {
137-
region = "eu01"
137+
default_region = "eu01"
138138
}`
139139
}
140140
return fmt.Sprintf(`
@@ -149,7 +149,7 @@ func LoadBalancerProviderConfig() string {
149149
if LoadBalancerCustomEndpoint == "" {
150150
return `
151151
provider "stackit" {
152-
region = "eu01"
152+
default_region = "eu01"
153153
enable_beta_resources = true
154154
}`
155155
}
@@ -165,7 +165,7 @@ func LogMeProviderConfig() string {
165165
if LogMeCustomEndpoint == "" {
166166
return `
167167
provider "stackit" {
168-
region = "eu01"
168+
default_region = "eu01"
169169
}`
170170
}
171171
return fmt.Sprintf(`
@@ -180,7 +180,7 @@ func MariaDBProviderConfig() string {
180180
if MariaDBCustomEndpoint == "" {
181181
return `
182182
provider "stackit" {
183-
region = "eu01"
183+
default_region = "eu01"
184184
}`
185185
}
186186
return fmt.Sprintf(`
@@ -195,7 +195,7 @@ func ModelServingProviderConfig() string {
195195
if ModelServingCustomEndpoint == "" {
196196
return `
197197
provider "stackit" {
198-
region = "eu01"
198+
default_region = "eu01"
199199
}
200200
`
201201
}
@@ -211,7 +211,7 @@ func MongoDBFlexProviderConfig() string {
211211
if MongoDBFlexCustomEndpoint == "" {
212212
return `
213213
provider "stackit" {
214-
region = "eu01"
214+
default_region = "eu01"
215215
}`
216216
}
217217
return fmt.Sprintf(`
@@ -226,7 +226,7 @@ func ObjectStorageProviderConfig() string {
226226
if ObjectStorageCustomEndpoint == "" {
227227
return `
228228
provider "stackit" {
229-
region = "eu01"
229+
default_region = "eu01"
230230
}`
231231
}
232232
return fmt.Sprintf(`
@@ -241,7 +241,7 @@ func OpenSearchProviderConfig() string {
241241
if OpenSearchCustomEndpoint == "" {
242242
return `
243243
provider "stackit" {
244-
region = "eu01"
244+
default_region = "eu01"
245245
}`
246246
}
247247
return fmt.Sprintf(`
@@ -256,7 +256,7 @@ func PostgresFlexProviderConfig() string {
256256
if PostgresFlexCustomEndpoint == "" {
257257
return `
258258
provider "stackit" {
259-
region = "eu01"
259+
default_region = "eu01"
260260
}`
261261
}
262262
return fmt.Sprintf(`
@@ -271,7 +271,7 @@ func RabbitMQProviderConfig() string {
271271
if RabbitMQCustomEndpoint == "" {
272272
return `
273273
provider "stackit" {
274-
region = "eu01"
274+
default_region = "eu01"
275275
}`
276276
}
277277
return fmt.Sprintf(`
@@ -286,7 +286,7 @@ func RedisProviderConfig() string {
286286
if RedisCustomEndpoint == "" {
287287
return `
288288
provider "stackit" {
289-
region = "eu01"
289+
default_region = "eu01"
290290
}`
291291
}
292292
return fmt.Sprintf(`
@@ -327,7 +327,7 @@ func SecretsManagerProviderConfig() string {
327327
if SecretsManagerCustomEndpoint == "" {
328328
return `
329329
provider "stackit" {
330-
region = "eu01"
330+
default_region = "eu01"
331331
}`
332332
}
333333
return fmt.Sprintf(`
@@ -342,7 +342,7 @@ func SQLServerFlexProviderConfig() string {
342342
if SQLServerFlexCustomEndpoint == "" {
343343
return `
344344
provider "stackit" {
345-
region = "eu01"
345+
default_region = "eu01"
346346
}`
347347
}
348348
return fmt.Sprintf(`
@@ -357,7 +357,7 @@ func ServerBackupProviderConfig() string {
357357
if ServerBackupCustomEndpoint == "" {
358358
return `
359359
provider "stackit" {
360-
region = "eu01"
360+
default_region = "eu01"
361361
}`
362362
}
363363
return fmt.Sprintf(`
@@ -388,7 +388,7 @@ func SKEProviderConfig() string {
388388
if SKECustomEndpoint == "" {
389389
return `
390390
provider "stackit" {
391-
region = "eu01"
391+
default_region = "eu01"
392392
}`
393393
}
394394
return fmt.Sprintf(`
@@ -403,7 +403,7 @@ func AuthorizationProviderConfig() string {
403403
if AuthorizationCustomEndpoint == "" {
404404
return `
405405
provider "stackit" {
406-
region = "eu01"
406+
default_region = "eu01"
407407
experiments = ["iam"]
408408
}`
409409
}
@@ -420,7 +420,7 @@ func ServiceAccountProviderConfig() string {
420420
if ServiceAccountCustomEndpoint == "" {
421421
return `
422422
provider "stackit" {
423-
region = "eu01"
423+
default_region = "eu01"
424424
enable_beta_resources = true
425425
}`
426426
}

templates/guides/aws_provider_s3_stackit.md.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
1515

1616
```hcl
1717
provider "stackit" {
18-
region = "eu01"
18+
default_region = "eu01"
1919
}
2020
```
2121

0 commit comments

Comments
 (0)