File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed
modules/ecs-instance-profile Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ locals {
11
11
}
12
12
13
13
module "vpc" {
14
- source = " terraform-aws-modules/vpc/aws"
14
+ source = " terraform-aws-modules/vpc/aws"
15
15
version = " ~> 2.0"
16
16
17
17
name = local. name
Original file line number Diff line number Diff line change 27
27
}
28
28
29
29
resource "aws_ecs_service" "hello_world" {
30
- name = " hello_world"
31
- cluster = var. cluster_id
30
+ name = " hello_world"
31
+ cluster = var. cluster_id
32
32
task_definition = aws_ecs_task_definition. hello_world . arn
33
33
34
34
desired_count = 1
35
35
36
- deployment_maximum_percent = 100
36
+ deployment_maximum_percent = 100
37
37
deployment_minimum_healthy_percent = 0
38
38
}
Original file line number Diff line number Diff line change 1
1
variable "cluster_id" {
2
2
description = " The ECS cluster ID"
3
- type = string
3
+ type = string
4
4
}
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ resource "aws_iam_instance_profile" "this" {
24
24
}
25
25
26
26
resource "aws_iam_role_policy_attachment" "ecs_ec2_role" {
27
- role = aws_iam_role. this . id
27
+ role = aws_iam_role. this . id
28
28
policy_arn = " arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role"
29
29
}
30
30
31
31
resource "aws_iam_role_policy_attachment" "ecs_ec2_cloudwatch_role" {
32
- role = aws_iam_role. this . id
32
+ role = aws_iam_role. this . id
33
33
policy_arn = " arn:aws:iam::aws:policy/CloudWatchLogsFullAccess"
34
34
}
Original file line number Diff line number Diff line change 1
1
variable "name" {
2
2
description = " Name to be used on all the resources as identifier"
3
- type = string
3
+ type = string
4
4
}
Original file line number Diff line number Diff line change 1
1
variable "create_ecs" {
2
2
description = " Controls if ECS should be created"
3
- type = bool
3
+ type = bool
4
4
default = true
5
5
}
6
6
7
7
variable "name" {
8
8
description = " Name to be used on all the resources as identifier, also the name of the ECS cluster"
9
- type = string
9
+ type = string
10
10
}
11
11
12
12
variable "tags" {
13
13
description = " A map of tags to add to ECS Cluster"
14
- type = map (string )
14
+ type = map (string )
15
15
default = {}
16
16
}
You can’t perform that action at this time.
0 commit comments