diff options
-rwxr-xr-x | bin/terraform | 1 | ||||
-rw-r--r-- | terraform/main.tf | 30 |
2 files changed, 15 insertions, 16 deletions
diff --git a/bin/terraform b/bin/terraform index 249d7ae..2a9295e 100755 --- a/bin/terraform +++ b/bin/terraform @@ -5,7 +5,6 @@ set -euo pipefail basedir=$(dirname "$0") version=0.14.6 -version=0.13.5 url=https://releases.hashicorp.com/terraform/${version}/terraform_${version}_linux_amd64.zip bin="$basedir/.tmp/$version/terraform" diff --git a/terraform/main.tf b/terraform/main.tf index 64803f6..f3f0ddb 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -2,30 +2,30 @@ terraform { required_version = ">= 0.13" backend "s3" { - key = "trygvis-infra" - region = "us-east-1" - bucket = "terraform" + key = "trygvis-infra" + region = "us-east-1" + bucket = "terraform" endpoint = "https://minio.trygvis.io" skip_credentials_validation = true - skip_metadata_api_check = true - skip_region_validation = true - force_path_style = true + skip_metadata_api_check = true + skip_region_validation = true + force_path_style = true } required_providers { linode = { version = "~> 1.13" - source = "linode/linode" + source = "linode/linode" } ansiblevault = { - version = "~> 2.2" - source = "MeilleursAgents/ansiblevault" + version = "~> 2.2" + source = "MeilleursAgents/ansiblevault" } minio = { - source = "tidalf/minio" + source = "tidalf/minio" version = "1.1.1" } } @@ -49,8 +49,8 @@ data "ansiblevault_path" "minio_secret_key" { } provider "minio" { - minio_server = "minio.trygvis.io:443" - minio_ssl = "true" + minio_server = "minio.trygvis.io:443" + minio_ssl = "true" minio_access_key = data.ansiblevault_path.minio_access_key.value minio_secret_key = data.ansiblevault_path.minio_secret_key.value } @@ -64,12 +64,12 @@ module "dns" { module "pg-backup-knot" { source = "./modules/minio-pg-backup" - id = "knot" + id = "knot" } output "pg_backup_knot" { value = { - sender: module.pg-backup-knot.sender, - bucket: module.pg-backup-knot.bucket, + sender : module.pg-backup-knot.sender, + bucket : module.pg-backup-knot.bucket, } } |