Initial commit
This commit is contained in:
parent
1e5b61f24b
commit
63ee56df5d
6 changed files with 68 additions and 1 deletions
3
00-backend.tf
Normal file
3
00-backend.tf
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/*terraform {
|
||||
backend "s3" {}
|
||||
}*/
|
||||
26
00-provider.tf
Normal file
26
00-provider.tf
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/*Copyright 2025 STACKIT GmbH & Co. KG <maintainer.email@stackit.cloud>
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.*/
|
||||
|
||||
terraform {
|
||||
required_version = ">= 0.14.0"
|
||||
required_providers {
|
||||
stackit = {
|
||||
source = "stackitcloud/stackit"
|
||||
version = "0.69.0"
|
||||
}
|
||||
random = {
|
||||
source = "hashicorp/random"
|
||||
version = "3.6.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "stackit" {
|
||||
default_region = var.stackit_region
|
||||
service_account_key_path = var.stackit_service_account_key_path
|
||||
experiments = ["routing-tables", "network"]
|
||||
enable_beta_resources = true
|
||||
}
|
||||
20
01-variables.tf
Normal file
20
01-variables.tf
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*Copyright 2025 STACKIT GmbH & Co. KG <maintainer.email@stackit.cloud>
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.*/
|
||||
|
||||
variable "stackit_region" {
|
||||
type = string
|
||||
default = "eu01"
|
||||
}
|
||||
|
||||
variable "stackit_service_account_key_path" {
|
||||
type = string
|
||||
default = "keys/sa-key.json"
|
||||
}
|
||||
|
||||
variable "stackit_project_id" {
|
||||
type = string
|
||||
default = "XXXX-XXXX-XXXX-XXXX"
|
||||
}
|
||||
10
02-example.tf
Normal file
10
02-example.tf
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*Copyright 2025 STACKIT GmbH & Co. KG <maintainer.email@stackit.cloud>
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
https://opensource.org/licenses/MIT.*/
|
||||
|
||||
resource "stackit_network" "example" {
|
||||
project_id = var.stackit_project_id
|
||||
name = "example"
|
||||
}
|
||||
|
|
@ -10,7 +10,7 @@ The main goal of this Best Practice (BP) is to [briefly describe the primary ben
|
|||
|
||||
```console
|
||||
/*
|
||||
Copyright 2025 STACKIT GmbH & Co. KG <maintainer.emailh@stackit.cloud>
|
||||
Copyright 2025 STACKIT GmbH & Co. KG <maintainer.email@stackit.cloud>
|
||||
|
||||
Use of this source code is governed by an MIT-style
|
||||
license that can be found in the LICENSE file or at
|
||||
|
|
|
|||
8
backend.conf.example
Normal file
8
backend.conf.example
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
bucket = ""
|
||||
key = ""
|
||||
endpoint = "https://object.storage.eu01.onstackit.cloud"
|
||||
region = "eu01"
|
||||
skip_credentials_validation = true
|
||||
skip_region_validation = true
|
||||
access_key = ""
|
||||
secret_key = ""
|
||||
Loading…
Reference in a new issue