chore(docs): use new 'default_region' provider attribute (#793)
instead of deprecated 'region' attribute
This commit is contained in:
parent
220d33574b
commit
4d93772fd2
14 changed files with 39 additions and 39 deletions
|
|
@ -155,7 +155,7 @@ To use beta resources in the STACKIT Terraform provider, follow these steps:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
enable_beta_resources = true
|
enable_beta_resources = true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
@ -180,7 +180,7 @@ To enable experiments set the experiments field in the provider definition:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
experiments = ["iam"]
|
experiments = ["iam"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ This guide outlines the process of utilizing the [HashiCorp Kubernetes provider]
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ Set the `enable_beta_resources` option in the provider configuration. This is a
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
enable_beta_resources = true
|
enable_beta_resources = true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ This guide explains how to configure the STACKIT Observability product to send a
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "kubernetes" {
|
provider "kubernetes" {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ This guide outlines the process of utilizing the [HashiCorp Vault provider](http
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,27 +6,27 @@ The STACKIT Terraform provider is the official Terraform provider to integrate a
|
||||||
|
|
||||||
```terraform
|
```terraform
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
|
|
||||||
# Token flow
|
# Token flow
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
service_account_token = var.service_account_token
|
service_account_token = var.service_account_token
|
||||||
}
|
}
|
||||||
|
|
||||||
# Key flow
|
# Key flow
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
service_account_key = var.service_account_key
|
service_account_key = var.service_account_key
|
||||||
private_key = var.private_key
|
private_key = var.private_key
|
||||||
}
|
}
|
||||||
|
|
||||||
# Key flow (using path)
|
# Key flow (using path)
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
service_account_key_path = var.service_account_key_path
|
service_account_key_path = var.service_account_key_path
|
||||||
private_key_path = var.private_key_path
|
private_key_path = var.private_key_path
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,25 @@
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Authentication
|
# Authentication
|
||||||
|
|
||||||
# Token flow
|
# Token flow
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
service_account_token = var.service_account_token
|
service_account_token = var.service_account_token
|
||||||
}
|
}
|
||||||
|
|
||||||
# Key flow
|
# Key flow
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
service_account_key = var.service_account_key
|
service_account_key = var.service_account_key
|
||||||
private_key = var.private_key
|
private_key = var.private_key
|
||||||
}
|
}
|
||||||
|
|
||||||
# Key flow (using path)
|
# Key flow (using path)
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
service_account_key_path = var.service_account_key_path
|
service_account_key_path = var.service_account_key_path
|
||||||
private_key_path = var.private_key_path
|
private_key_path = var.private_key_path
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ var (
|
||||||
func ArgusProviderConfig() string {
|
func ArgusProviderConfig() string {
|
||||||
if ArgusCustomEndpoint == "" {
|
if ArgusCustomEndpoint == "" {
|
||||||
return `provider "stackit" {
|
return `provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -96,7 +96,7 @@ func ArgusProviderConfig() string {
|
||||||
func ObservabilityProviderConfig() string {
|
func ObservabilityProviderConfig() string {
|
||||||
if ObservabilityCustomEndpoint == "" {
|
if ObservabilityCustomEndpoint == "" {
|
||||||
return `provider "stackit" {
|
return `provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -134,7 +134,7 @@ func IaaSProviderConfig() string {
|
||||||
if IaaSCustomEndpoint == "" {
|
if IaaSCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -149,7 +149,7 @@ func LoadBalancerProviderConfig() string {
|
||||||
if LoadBalancerCustomEndpoint == "" {
|
if LoadBalancerCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
enable_beta_resources = true
|
enable_beta_resources = true
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
|
|
@ -165,7 +165,7 @@ func LogMeProviderConfig() string {
|
||||||
if LogMeCustomEndpoint == "" {
|
if LogMeCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -180,7 +180,7 @@ func MariaDBProviderConfig() string {
|
||||||
if MariaDBCustomEndpoint == "" {
|
if MariaDBCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -195,7 +195,7 @@ func ModelServingProviderConfig() string {
|
||||||
if ModelServingCustomEndpoint == "" {
|
if ModelServingCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
@ -211,7 +211,7 @@ func MongoDBFlexProviderConfig() string {
|
||||||
if MongoDBFlexCustomEndpoint == "" {
|
if MongoDBFlexCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -226,7 +226,7 @@ func ObjectStorageProviderConfig() string {
|
||||||
if ObjectStorageCustomEndpoint == "" {
|
if ObjectStorageCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -241,7 +241,7 @@ func OpenSearchProviderConfig() string {
|
||||||
if OpenSearchCustomEndpoint == "" {
|
if OpenSearchCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -256,7 +256,7 @@ func PostgresFlexProviderConfig() string {
|
||||||
if PostgresFlexCustomEndpoint == "" {
|
if PostgresFlexCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -271,7 +271,7 @@ func RabbitMQProviderConfig() string {
|
||||||
if RabbitMQCustomEndpoint == "" {
|
if RabbitMQCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -286,7 +286,7 @@ func RedisProviderConfig() string {
|
||||||
if RedisCustomEndpoint == "" {
|
if RedisCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -327,7 +327,7 @@ func SecretsManagerProviderConfig() string {
|
||||||
if SecretsManagerCustomEndpoint == "" {
|
if SecretsManagerCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -342,7 +342,7 @@ func SQLServerFlexProviderConfig() string {
|
||||||
if SQLServerFlexCustomEndpoint == "" {
|
if SQLServerFlexCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -357,7 +357,7 @@ func ServerBackupProviderConfig() string {
|
||||||
if ServerBackupCustomEndpoint == "" {
|
if ServerBackupCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -388,7 +388,7 @@ func SKEProviderConfig() string {
|
||||||
if SKECustomEndpoint == "" {
|
if SKECustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
return fmt.Sprintf(`
|
return fmt.Sprintf(`
|
||||||
|
|
@ -403,7 +403,7 @@ func AuthorizationProviderConfig() string {
|
||||||
if AuthorizationCustomEndpoint == "" {
|
if AuthorizationCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
experiments = ["iam"]
|
experiments = ["iam"]
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
|
|
@ -420,7 +420,7 @@ func ServiceAccountProviderConfig() string {
|
||||||
if ServiceAccountCustomEndpoint == "" {
|
if ServiceAccountCustomEndpoint == "" {
|
||||||
return `
|
return `
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
enable_beta_resources = true
|
enable_beta_resources = true
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ This guide outlines the process of utilizing the [AWS Terraform Provider](https:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ This guide outlines the process of utilizing the [HashiCorp Kubernetes provider]
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ Set the `enable_beta_resources` option in the provider configuration. This is a
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
enable_beta_resources = true
|
enable_beta_resources = true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ This guide explains how to configure the STACKIT Observability product to send a
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "kubernetes" {
|
provider "kubernetes" {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ This guide outlines the process of utilizing the [HashiCorp Vault provider](http
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
provider "stackit" {
|
provider "stackit" {
|
||||||
region = "eu01"
|
default_region = "eu01"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue