Skip to content

Commit 7094c32

Browse files
authored
Ignore task defn (#7)
* Add aws_ecs_task_ignore_definition input
1 parent c5e20f2 commit 7094c32

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ The following inputs can be used as `step.with` keys
185185
| `aws_ecs_service_launch_type`| String | Configuration type. Could be `EC2`, `FARGATE` or `EXTERNAL`. Defaults to `FARGATE`. |
186186
| `aws_ecs_task_type`| String | Configuration type. Could be `EC2`, `FARGATE` or empty. Will default to `aws_ecs_service_launch_type` if none defined. (Blank if `EXTERNAL`). |
187187
| `aws_ecs_task_name`| String | Elastic Container Service task name. If task is defined with a JSON file, should be the same as the container name. |
188+
| `aws_ecs_task_ignore_definition` | Boolean | Ignores changes done in the ECS Tasks and services. That way stack can be managed from outside Terraform. Defaults to `false` |
188189
| `aws_ecs_task_execution_role`| String | Elastic Container Service task execution role name from IAM. Defaults to `ecsTaskExecutionRole`. |
189190
| `aws_ecs_task_json_definition_file`| String | Name of the json file containing task definition. Overrides every other input. |
190191
| `aws_ecs_task_network_mode`| String | Network type to use in task definition. One of `none`, `bridge`, `awsvpc`, and `host`. |

action.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ inputs:
7272
aws_ecs_task_name:
7373
description: 'Elastic Container Service task name'
7474
required: false
75+
aws_ecs_task_ignore_definition:
76+
description: 'Toggle to ignore task definition changes after first deployment. Useful when using external tools to manage the task definition.'
77+
required: false
7578
aws_ecs_task_execution_role:
7679
description: 'Elastic Container Service task execution role name from IAM. Defaults to "ecsTaskExecutionRole"'
7780
required: false
@@ -335,6 +338,7 @@ runs:
335338
aws_ecs_service_launch_type: ${{ inputs.aws_ecs_service_launch_type }}
336339
aws_ecs_task_type: ${{ inputs.aws_ecs_task_type }}
337340
aws_ecs_task_name: ${{ inputs.aws_ecs_task_name }}
341+
aws_ecs_task_ignore_definition: ${{ inputs.aws_ecs_task_ignore_definition }}
338342
aws_ecs_task_execution_role: ${{ inputs.aws_ecs_task_execution_role }}
339343
aws_ecs_task_json_definition_file: ${{ inputs.aws_ecs_task_json_definition_file }}
340344
aws_ecs_task_network_mode: ${{ inputs.aws_ecs_task_network_mode }}

0 commit comments

Comments
 (0)