Skip to content

Commit e87e64a

Browse files
committed
Merge branch 'feat/57' into sandbox
2 parents eae42b3 + 22ba9bf commit e87e64a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

component/ecs-ec2/capacity_provider.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
resource "aws_ecs_capacity_provider" "ecs_cluster_ec2_cp" {
2-
name = "${var.environment}-ecs-cluster-ec2-cp"
1+
resource "aws_ecs_capacity_provider" "ecs_cluster_ec2_capacity_provider" {
2+
name = "${var.environment}-ecs-cluster-ec2-capacity_provider"
33

44
auto_scaling_group_provider {
55
auto_scaling_group_arn = aws_autoscaling_group.platform_ec2_asg.arn
@@ -19,12 +19,12 @@ resource "aws_ecs_capacity_provider" "ecs_cluster_ec2_cp" {
1919
}
2020
}
2121

22-
resource "aws_ecs_cluster_capacity_providers" "ecs_cluster_default_cp" {
22+
resource "aws_ecs_cluster_capacity_providers" "ecs_cluster_default_capacity_provider" {
2323
cluster_name = aws_ecs_cluster.platform_ecs_cluster.name
24-
capacity_providers = [aws_ecs_capacity_provider.ecs_cluster_ec2_cp.name]
24+
capacity_providers = [aws_ecs_capacity_provider.ecs_cluster_ec2_capacity_provider.name]
2525

2626
default_capacity_provider_strategy {
27-
capacity_provider = aws_ecs_capacity_provider.ecs_cluster_ec2_cp.name
27+
capacity_provider = aws_ecs_capacity_provider.ecs_cluster_ec2_capacity_provider.name
2828
weight = 1
2929
base = 1
3030
}

component/ecs-ec2/service.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ resource "aws_ecs_service" "nomoney_api" {
1717
health_check_grace_period_seconds = 300
1818

1919
capacity_provider_strategy {
20-
capacity_provider = aws_ecs_capacity_provider.ecs_cluster_ec2_cp.name
20+
capacity_provider = aws_ecs_capacity_provider.ecs_cluster_ec2_capacity_provider.name
2121
weight = 1
2222
}
2323

2424
deployment_minimum_healthy_percent = 100
2525
deployment_maximum_percent = 200
2626

2727
depends_on = [
28-
aws_ecs_cluster_capacity_providers.ecs_cluster_default_cp
28+
aws_ecs_cluster_capacity_providers.ecs_cluster_default_capacity_provider
2929
]
30-
}
30+
}

0 commit comments

Comments
 (0)