Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Jun 9, 2019
1 parent 4612040 commit 42e8559
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/complete-ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/complete-ecs/service-hello-world/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion examples/complete-ecs/service-hello-world/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "cluster_id" {
description = "The ECS cluster ID"
type = string
type = string
}
4 changes: 2 additions & 2 deletions modules/ecs-instance-profile/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion modules/ecs-instance-profile/variables.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
variable "name" {
description = "Name to be used on all the resources as identifier"
type = string
type = string
}
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -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 = {}
}

0 comments on commit 42e8559

Please sign in to comment.