From 038ba313d0c7e31f2b0c130029773040929f0874 Mon Sep 17 00:00:00 2001 From: Hoang Mirs Date: Wed, 21 Sep 2022 16:22:42 +0700 Subject: [PATCH] [#111] Run terraform fmt --- skeleton/aws/modules/alb/main.tf | 4 ++-- skeleton/aws/modules/bastion/variables.tf | 14 ++++++------- skeleton/aws/modules/vpc/variables.tf | 24 +++++++++++------------ 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/skeleton/aws/modules/alb/main.tf b/skeleton/aws/modules/alb/main.tf index 6429824d..e944dc60 100644 --- a/skeleton/aws/modules/alb/main.tf +++ b/skeleton/aws/modules/alb/main.tf @@ -36,8 +36,8 @@ resource "aws_lb_target_group" "target_group" { for_each = var.enable_stickiness ? [1] : [] content { - enabled = true - type = var.stickiness_type + enabled = true + type = var.stickiness_type } } } diff --git a/skeleton/aws/modules/bastion/variables.tf b/skeleton/aws/modules/bastion/variables.tf index 88a488be..a3e9d7b4 100644 --- a/skeleton/aws/modules/bastion/variables.tf +++ b/skeleton/aws/modules/bastion/variables.tf @@ -5,35 +5,35 @@ variable "namespace" { variable "subnet_ids" { description = "The public setnet IsD for the instance" - type = list(string) + type = list(string) } variable "instance_security_group_ids" { description = "The security group IDs for the instance" - type = list(string) + type = list(string) } variable "image_id" { description = "The AMI image ID" - default = "ami-0801a1e12f4a9ccc0" + default = "ami-0801a1e12f4a9ccc0" } variable "instance_type" { description = "The instance type" - default = "t3.nano" + default = "t3.nano" } variable "instance_desired_count" { description = "The desired number of the instance" - default = 1 + default = 1 } variable "max_instance_count" { description = "The maximum number of the instance" - default = 1 + default = 1 } variable "min_instance_count" { description = "The minimum number of the instance" - default = 1 + default = 1 } diff --git a/skeleton/aws/modules/vpc/variables.tf b/skeleton/aws/modules/vpc/variables.tf index c76cf319..9fc3c982 100644 --- a/skeleton/aws/modules/vpc/variables.tf +++ b/skeleton/aws/modules/vpc/variables.tf @@ -10,36 +10,36 @@ variable "cidr" { variable "private_subnet_cidrs" { description = "VPC private subnet CIDRs" - type = list(any) - default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] + type = list(any) + default = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"] } variable "public_subnet_cidrs" { description = "VPC public subnet CIDRs" - type = list(any) - default = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"] + type = list(any) + default = ["10.0.4.0/24", "10.0.5.0/24", "10.0.6.0/24"] } variable "enable_nat_gateway" { description = "VPC NAT gateway flag" - type = bool - default = true + type = bool + default = true } variable "single_nat_gateway" { description = "VPC single NAT gateway flag" - type = bool - default = true + type = bool + default = true } variable "one_nat_gateway_per_az" { description = "VPC one NAT gateway per AZ flag" - type = bool - default = false + type = bool + default = false } variable "enable_dns_hostnames" { description = "VPC DNS hostnames flag" - type = bool - default = true + type = bool + default = true }