From 42e85599b913d96a61411d4d1484b87fc6ead306 Mon Sep 17 00:00:00 2001 From: Anton Babenko Date: Sun, 9 Jun 2019 17:03:42 +0200 Subject: [PATCH] Fixed formatting --- examples/complete-ecs/main.tf | 2 +- examples/complete-ecs/service-hello-world/main.tf | 6 +++--- examples/complete-ecs/service-hello-world/variables.tf | 2 +- modules/ecs-instance-profile/main.tf | 4 ++-- modules/ecs-instance-profile/variables.tf | 2 +- variables.tf | 6 +++--- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/complete-ecs/main.tf b/examples/complete-ecs/main.tf index 151140b..38d4586 100644 --- a/examples/complete-ecs/main.tf +++ b/examples/complete-ecs/main.tf @@ -11,7 +11,7 @@ locals { } module "vpc" { - source = "terraform-aws-modules/vpc/aws" + source = "terraform-aws-modules/vpc/aws" version = "~> 2.0" name = local.name diff --git a/examples/complete-ecs/service-hello-world/main.tf b/examples/complete-ecs/service-hello-world/main.tf index 91a2953..ea88a85 100644 --- a/examples/complete-ecs/service-hello-world/main.tf +++ b/examples/complete-ecs/service-hello-world/main.tf @@ -27,12 +27,12 @@ EOF } resource "aws_ecs_service" "hello_world" { - name = "hello_world" - cluster = var.cluster_id + name = "hello_world" + cluster = var.cluster_id task_definition = aws_ecs_task_definition.hello_world.arn desired_count = 1 - deployment_maximum_percent = 100 + deployment_maximum_percent = 100 deployment_minimum_healthy_percent = 0 } diff --git a/examples/complete-ecs/service-hello-world/variables.tf b/examples/complete-ecs/service-hello-world/variables.tf index 848d4da..e090d7d 100644 --- a/examples/complete-ecs/service-hello-world/variables.tf +++ b/examples/complete-ecs/service-hello-world/variables.tf @@ -1,4 +1,4 @@ variable "cluster_id" { description = "The ECS cluster ID" - type = string + type = string } diff --git a/modules/ecs-instance-profile/main.tf b/modules/ecs-instance-profile/main.tf index 45f8940..031d666 100644 --- a/modules/ecs-instance-profile/main.tf +++ b/modules/ecs-instance-profile/main.tf @@ -24,11 +24,11 @@ resource "aws_iam_instance_profile" "this" { } resource "aws_iam_role_policy_attachment" "ecs_ec2_role" { - role = aws_iam_role.this.id + role = aws_iam_role.this.id policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role" } resource "aws_iam_role_policy_attachment" "ecs_ec2_cloudwatch_role" { - role = aws_iam_role.this.id + role = aws_iam_role.this.id policy_arn = "arn:aws:iam::aws:policy/CloudWatchLogsFullAccess" } diff --git a/modules/ecs-instance-profile/variables.tf b/modules/ecs-instance-profile/variables.tf index d54028f..838e324 100644 --- a/modules/ecs-instance-profile/variables.tf +++ b/modules/ecs-instance-profile/variables.tf @@ -1,4 +1,4 @@ variable "name" { description = "Name to be used on all the resources as identifier" -type = string + type = string } diff --git a/variables.tf b/variables.tf index 1797931..f975ae3 100644 --- a/variables.tf +++ b/variables.tf @@ -1,16 +1,16 @@ variable "create_ecs" { description = "Controls if ECS should be created" - type = bool + type = bool default = true } variable "name" { description = "Name to be used on all the resources as identifier, also the name of the ECS cluster" - type = string + type = string } variable "tags" { description = "A map of tags to add to ECS Cluster" - type = map(string) + type = map(string) default = {} }