terraform
This commit is contained in:
commit
33a12b643f
15 changed files with 1021 additions and 0 deletions
51
terraform/providers.tf
Normal file
51
terraform/providers.tf
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
terraform {
|
||||
required_version = ">= 1.0.0"
|
||||
|
||||
# S3 backend - comment this section if bucket not yet created
|
||||
backend "s3" {
|
||||
bucket = "asxpio-terraform-main"
|
||||
key = "terraform/state/terraform.tfstate"
|
||||
region = "hel1"
|
||||
endpoint = "https://hel1.your-objectstorage.com"
|
||||
skip_credentials_validation = true
|
||||
skip_metadata_api_check = true
|
||||
skip_region_validation = true
|
||||
skip_requesting_account_id = true
|
||||
force_path_style = true
|
||||
}
|
||||
|
||||
required_providers {
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "~> 1.54"
|
||||
}
|
||||
minio = {
|
||||
source = "aminueza/minio"
|
||||
version = "~> 3.11"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "hcloud" {
|
||||
token = var.hcloud_token
|
||||
}
|
||||
|
||||
# MinIO provider for Helsinki (hel1) region
|
||||
provider "minio" {
|
||||
alias = "hel1"
|
||||
minio_server = var.s3_endpoint_hel1
|
||||
minio_user = var.s3_access_key
|
||||
minio_password = var.s3_secret_key
|
||||
minio_region = "hel1"
|
||||
minio_ssl = true
|
||||
}
|
||||
|
||||
# MinIO provider for Falkenstein (fsn1) region
|
||||
provider "minio" {
|
||||
alias = "fsn1"
|
||||
minio_server = var.s3_endpoint_fsn1
|
||||
minio_user = var.s3_access_key
|
||||
minio_password = var.s3_secret_key
|
||||
minio_region = "fsn1"
|
||||
minio_ssl = true
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue