Skip to content

Commit 1811c03

Browse files
feat: Add support for AWS ECS Exec (#209)
1 parent 14e03c4 commit 1811c03

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ repos:
2121
- '--args=--only=terraform_standard_module_structure'
2222
- '--args=--only=terraform_workspace_remote'
2323
- repo: git://github.com/pre-commit/pre-commit-hooks
24-
rev: v3.4.0
24+
rev: v4.0.1
2525
hooks:
2626
- id: check-merge-conflict

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ allow_github_webhooks = true
319319
| <a name="input_ecs_service_deployment_maximum_percent"></a> [ecs\_service\_deployment\_maximum\_percent](#input\_ecs\_service\_deployment\_maximum\_percent) | The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment | `number` | `200` | no |
320320
| <a name="input_ecs_service_deployment_minimum_healthy_percent"></a> [ecs\_service\_deployment\_minimum\_healthy\_percent](#input\_ecs\_service\_deployment\_minimum\_healthy\_percent) | The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment | `number` | `50` | no |
321321
| <a name="input_ecs_service_desired_count"></a> [ecs\_service\_desired\_count](#input\_ecs\_service\_desired\_count) | The number of instances of the task definition to place and keep running | `number` | `1` | no |
322+
| <a name="input_ecs_service_enable_execute_command"></a> [ecs\_service\_enable\_execute\_command](#input\_ecs\_service\_enable\_execute\_command) | Enable ECS exec for the service. This can be used to allow interactive sessions and commands to be executed in the container | `bool` | `true` | no |
322323
| <a name="input_ecs_service_force_new_deployment"></a> [ecs\_service\_force\_new\_deployment](#input\_ecs\_service\_force\_new\_deployment) | Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g. myimage:latest) | `bool` | `false` | no |
323324
| <a name="input_ecs_service_platform_version"></a> [ecs\_service\_platform\_version](#input\_ecs\_service\_platform\_version) | The platform version on which to run your service | `string` | `"LATEST"` | no |
324325
| <a name="input_ecs_task_cpu"></a> [ecs\_task\_cpu](#input\_ecs\_task\_cpu) | The number of cpu units used by the task | `number` | `256` | no |

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ resource "aws_ecs_service" "atlantis" {
605605
deployment_maximum_percent = var.ecs_service_deployment_maximum_percent
606606
deployment_minimum_healthy_percent = var.ecs_service_deployment_minimum_healthy_percent
607607
force_new_deployment = var.ecs_service_force_new_deployment
608+
enable_execute_command = var.ecs_service_enable_execute_command
608609

609610
network_configuration {
610611
subnets = local.private_subnet_ids

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -613,3 +613,9 @@ variable "ecs_service_force_new_deployment" {
613613
type = bool
614614
default = false
615615
}
616+
617+
variable "ecs_service_enable_execute_command" {
618+
description = "Enable ECS exec for the service. This can be used to allow interactive sessions and commands to be executed in the container"
619+
type = bool
620+
default = true
621+
}

0 commit comments

Comments
 (0)