From 4331bc615427970fe99b1c9a29038a55cd7d9071 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Wed, 14 Aug 2024 14:18:29 -0300 Subject: [PATCH] chore: Enable execute command on aws ecs services (#7975) This allows executing commands from the AWS CLI directly on the containers for troubleshooting. See https://aws.amazon.com/about-aws/whats-new/2021/03/amazon-ecs-now-allows-you-to-run-commands-in-a-container-running-on-amazon-ec2-or-aws-fargate/ for more info. --- yarn-project/aztec-faucet/terraform/main.tf | 1 + yarn-project/aztec/terraform/bot/main.tf | 1 + yarn-project/aztec/terraform/node/main.tf | 1 + yarn-project/aztec/terraform/prover-node/main.tf | 2 +- yarn-project/aztec/terraform/prover/main.tf | 1 + yarn-project/aztec/terraform/pxe/main.tf | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) diff --git a/yarn-project/aztec-faucet/terraform/main.tf b/yarn-project/aztec-faucet/terraform/main.tf index 691401b4ef1..2326d9e3e4e 100644 --- a/yarn-project/aztec-faucet/terraform/main.tf +++ b/yarn-project/aztec-faucet/terraform/main.tf @@ -171,6 +171,7 @@ resource "aws_ecs_service" "aztec-faucet" { deployment_maximum_percent = 100 deployment_minimum_healthy_percent = 0 platform_version = "1.4.0" + enable_execute_command = true network_configuration { subnets = [ diff --git a/yarn-project/aztec/terraform/bot/main.tf b/yarn-project/aztec/terraform/bot/main.tf index fee1a564b0f..4871cd18eef 100644 --- a/yarn-project/aztec/terraform/bot/main.tf +++ b/yarn-project/aztec/terraform/bot/main.tf @@ -192,6 +192,7 @@ resource "aws_ecs_service" "aztec-bot" { deployment_maximum_percent = 100 deployment_minimum_healthy_percent = 0 force_new_deployment = true + enable_execute_command = true network_configuration { subnets = [ diff --git a/yarn-project/aztec/terraform/node/main.tf b/yarn-project/aztec/terraform/node/main.tf index 4bbe9182169..e7f7b040d7d 100644 --- a/yarn-project/aztec/terraform/node/main.tf +++ b/yarn-project/aztec/terraform/node/main.tf @@ -402,6 +402,7 @@ resource "aws_ecs_service" "aztec-node" { deployment_minimum_healthy_percent = 0 platform_version = "1.4.0" force_new_deployment = true + enable_execute_command = true network_configuration { diff --git a/yarn-project/aztec/terraform/prover-node/main.tf b/yarn-project/aztec/terraform/prover-node/main.tf index 36e2cd02291..a8e78c8aecc 100644 --- a/yarn-project/aztec/terraform/prover-node/main.tf +++ b/yarn-project/aztec/terraform/prover-node/main.tf @@ -272,7 +272,7 @@ resource "aws_ecs_service" "aztec-prover-node" { deployment_minimum_healthy_percent = 0 platform_version = "1.4.0" force_new_deployment = true - + enable_execute_command = true network_configuration { assign_public_ip = true diff --git a/yarn-project/aztec/terraform/prover/main.tf b/yarn-project/aztec/terraform/prover/main.tf index 25056aa95b8..b02bf12957b 100644 --- a/yarn-project/aztec/terraform/prover/main.tf +++ b/yarn-project/aztec/terraform/prover/main.tf @@ -307,6 +307,7 @@ resource "aws_ecs_service" "aztec-proving-agent" { desired_count = local.agents_per_prover deployment_maximum_percent = 100 deployment_minimum_healthy_percent = 0 + enable_execute_command = true #platform_version = "1.4.0" # Associate the EC2 capacity provider diff --git a/yarn-project/aztec/terraform/pxe/main.tf b/yarn-project/aztec/terraform/pxe/main.tf index 5e94191744c..9a0908f8bfb 100644 --- a/yarn-project/aztec/terraform/pxe/main.tf +++ b/yarn-project/aztec/terraform/pxe/main.tf @@ -179,6 +179,7 @@ resource "aws_ecs_service" "aztec-pxe" { deployment_minimum_healthy_percent = 0 platform_version = "1.4.0" force_new_deployment = true + enable_execute_command = true network_configuration { subnets = [