Skip to content

Commit 189c0ca

Browse files
committed
Applying changes from terraform fmt command
1 parent 3600898 commit 189c0ca

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

examples/test/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ module "base-network" {
1313
version = "2.0.7"
1414
name_preffix = "test-networking"
1515
vpc_cidr_block = "192.168.0.0/16"
16-
availability_zones = [ "us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d" ]
17-
public_subnets_cidrs_per_availability_zone = [ "192.168.0.0/19", "192.168.32.0/19", "192.168.64.0/19", "192.168.96.0/19" ]
18-
private_subnets_cidrs_per_availability_zone = [ "192.168.128.0/19", "192.168.160.0/19", "192.168.192.0/19", "192.168.224.0/19" ]
16+
availability_zones = ["us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d"]
17+
public_subnets_cidrs_per_availability_zone = ["192.168.0.0/19", "192.168.32.0/19", "192.168.64.0/19", "192.168.96.0/19"]
18+
private_subnets_cidrs_per_availability_zone = ["192.168.128.0/19", "192.168.160.0/19", "192.168.192.0/19", "192.168.224.0/19"]
1919
}
2020

2121
module "load_balancer" {

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data "aws_lb_listener" "lb_https_listeners" {
3030
# AWS ECS SERVICE
3131
#------------------------------------------------------------------------------
3232
resource "aws_ecs_service" "service" {
33-
name = "${var.name_preffix}-service"
33+
name = "${var.name_preffix}-service"
3434
# capacity_provider_strategy - (Optional) The capacity provider strategy to use for the service. Can be one or more. Defined below.
3535
cluster = var.ecs_cluster_arn
3636
deployment_maximum_percent = var.deployment_maximum_percent

variables.tf

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ variable "task_definition_arn" {
8181
description = "(Required) The full ARN of the task definition that you want to run in your service."
8282
}
8383

84-
variable "force_new_deployment"{
84+
variable "force_new_deployment" {
8585
description = "(Optional) Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g. myimage:latest), roll Fargate tasks onto a newer platform version, or immediately deploy ordered_placement_strategy and placement_constraints updates."
86-
type = bool
87-
default = false
86+
type = bool
87+
default = false
8888
}
8989

9090
#------------------------------------------------------------------------------
@@ -128,47 +128,47 @@ variable "ecs_cluster_name" {
128128

129129
variable "max_cpu_threshold" {
130130
description = "Threshold for max CPU usage"
131-
default = "85"
132-
type = string
131+
default = "85"
132+
type = string
133133
}
134134
variable "min_cpu_threshold" {
135135
description = "Threshold for min CPU usage"
136-
default = "10"
137-
type = string
136+
default = "10"
137+
type = string
138138
}
139139

140-
variable "max_cpu_evaluation_period"{
141-
description = "The number of periods over which data is compared to the specified threshold for max cpu metric alarm"
142-
default = "3"
143-
type = string
140+
variable "max_cpu_evaluation_period" {
141+
description = "The number of periods over which data is compared to the specified threshold for max cpu metric alarm"
142+
default = "3"
143+
type = string
144144
}
145-
variable "min_cpu_evaluation_period"{
146-
description = "The number of periods over which data is compared to the specified threshold for min cpu metric alarm"
147-
default = "3"
148-
type = string
145+
variable "min_cpu_evaluation_period" {
146+
description = "The number of periods over which data is compared to the specified threshold for min cpu metric alarm"
147+
default = "3"
148+
type = string
149149
}
150150

151-
variable "max_cpu_period"{
152-
description = "The period in seconds over which the specified statistic is applied for max cpu metric alarm"
153-
default = "60"
154-
type = string
151+
variable "max_cpu_period" {
152+
description = "The period in seconds over which the specified statistic is applied for max cpu metric alarm"
153+
default = "60"
154+
type = string
155155
}
156-
variable "min_cpu_period"{
157-
description = "The period in seconds over which the specified statistic is applied for min cpu metric alarm"
158-
default = "60"
159-
type = string
156+
variable "min_cpu_period" {
157+
description = "The period in seconds over which the specified statistic is applied for min cpu metric alarm"
158+
default = "60"
159+
type = string
160160
}
161161

162162
variable "scale_target_max_capacity" {
163163
description = "The max capacity of the scalable target"
164-
default = 5
165-
type = number
164+
default = 5
165+
type = number
166166
}
167167

168168
variable "scale_target_min_capacity" {
169169
description = "The min capacity of the scalable target"
170-
default = 1
171-
type = number
170+
default = 1
171+
type = number
172172
}
173173

174174
#------------------------------------------------------------------------------
@@ -191,12 +191,12 @@ variable "lb_https_tgs_arns" {
191191

192192
variable "lb_http_listeners_arns" {
193193
description = "List of HTTP LB Listeners ARNs"
194-
type = list(string)
194+
type = list(string)
195195
}
196196

197197
variable "lb_https_listeners_arns" {
198198
description = "List of HTTPS LB Listeners ARNs"
199-
type = list(string)
199+
type = list(string)
200200
}
201201

202202
variable "load_balancer_sg_id" {

0 commit comments

Comments
 (0)