Skip to content

Commit

Permalink
タスクを停止した際の強制デプロイオプションを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
XxxKMSxxX committed Jul 28, 2024
1 parent 9e3e35d commit 6efd296
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 0 additions & 3 deletions environments/prod/tokyo/collects.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
collects: {
# binance: {
# spot: [
# "btcjpy",
# "btcusdt",
# "ethjpy",
# "ethusdt",
# "soljpy"
# "solusdt",
# ],
# usdt_perpetual: [
Expand Down
13 changes: 7 additions & 6 deletions modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,13 @@ resource "aws_lb_listener" "app" {
}

resource "aws_ecs_service" "this" {
for_each = aws_ecs_task_definition.ecs_task_definitions
name = "${var.project_name}-${each.key}-service"
cluster = aws_ecs_cluster.this.id
task_definition = each.value.arn
desired_count = 1
launch_type = "EC2"
for_each = aws_ecs_task_definition.ecs_task_definitions
name = "${var.project_name}-${each.key}-service"
cluster = aws_ecs_cluster.this.id
task_definition = each.value.arn
desired_count = 1
launch_type = "EC2"
force_new_deployment = true

load_balancer {
target_group_arn = aws_lb_target_group.app.arn
Expand Down

0 comments on commit 6efd296

Please sign in to comment.