From e8a89352e280aadb143a31423cdbb2ea9b206d5a Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Mon, 8 Jul 2024 17:57:53 +0200 Subject: [PATCH] fmt --- minio.tf | 2 +- modules/minio/inputs.tf | 6 +++--- modules/minio/minio.tf | 20 ++++++++++---------- terraform.tf | 18 +++++++++--------- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/minio.tf b/minio.tf index 2dcd068..a528a3b 100644 --- a/minio.tf +++ b/minio.tf @@ -4,5 +4,5 @@ module "minio" { network = docker_network.loadbalancer storage_path = "/media/storage/minio" admin_username = "techinc" - expose_ports = true + expose_ports = true } diff --git a/modules/minio/inputs.tf b/modules/minio/inputs.tf index 4c13411..fe899f8 100644 --- a/modules/minio/inputs.tf +++ b/modules/minio/inputs.tf @@ -19,7 +19,7 @@ variable "storage_path" { description = "The path to the storage directory to use" } variable "expose_ports" { - type = bool - description = "Expose the minio ports to the outside world" - default = false + type = bool + description = "Expose the minio ports to the outside world" + default = false } \ No newline at end of file diff --git a/modules/minio/minio.tf b/modules/minio/minio.tf index e57ca7a..ef48d81 100644 --- a/modules/minio/minio.tf +++ b/modules/minio/minio.tf @@ -52,16 +52,16 @@ resource "docker_service" "minio" { dynamic "endpoint_spec" { for_each = var.expose_ports ? toset(["aw yis"]) : toset([]) content { - ports { - target_port = 9000 - published_port = 9000 - publish_mode = "ingress" - } - ports { - target_port = 9001 - published_port = 9001 - publish_mode = "ingress" - } + ports { + target_port = 9000 + published_port = 9000 + publish_mode = "ingress" + } + ports { + target_port = 9001 + published_port = 9001 + publish_mode = "ingress" + } } } } diff --git a/terraform.tf b/terraform.tf index a544c3b..dbb34e8 100644 --- a/terraform.tf +++ b/terraform.tf @@ -21,18 +21,18 @@ terraform { } backend "s3" { - bucket = "terraform" - key = "ti-iac.tfstate" - profile = "techinc-tf" + bucket = "terraform" + key = "ti-iac.tfstate" + profile = "techinc-tf" shared_credentials_files = ["~/.aws/credentials"] endpoints = { s3 = "http://california.ti:9000" } - region = "main" # Region validation will be skipped - skip_credentials_validation = true # Skip AWS related checks and validations - skip_requesting_account_id = true - skip_metadata_api_check = true - skip_region_validation = true - use_path_style = true # Enable path-style S3 URLs (https:/// https://developer.hashicorp.com/terraform/language/settings/backends/s3#use_path_style + region = "main" # Region validation will be skipped + skip_credentials_validation = true # Skip AWS related checks and validations + skip_requesting_account_id = true + skip_metadata_api_check = true + skip_region_validation = true + use_path_style = true # Enable path-style S3 URLs (https:/// https://developer.hashicorp.com/terraform/language/settings/backends/s3#use_path_style } }