Skip to content

Commit

Permalink
chore: Enable execute command on aws ecs services (#7975)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
spalladino authored Aug 14, 2024
1 parent 75c6768 commit 4331bc6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions yarn-project/aztec-faucet/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
1 change: 1 addition & 0 deletions yarn-project/aztec/terraform/bot/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
1 change: 1 addition & 0 deletions yarn-project/aztec/terraform/node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/aztec/terraform/prover-node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions yarn-project/aztec/terraform/prover/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions yarn-project/aztec/terraform/pxe/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 4331bc6

Please sign in to comment.