geekcell/Run AWS ECS Fargate Task

Run an AWS ECS Fargate task and execute a custom commands. See the log output of the commands.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
task-definitionThe name or the ARN of the task definition to use for the task.yes
subnet-idsThe list of subnet IDs for the task to use. If multiple they should be passed as multiline argument with one subnet ID per line.yes
security-group-idsList of security group IDs for the task. If multiple they should be passed as multiline argument with one subnet ID per line.yes
assign-public-ipAssign public a IP to the task. Options: `['ENABLED', 'DISABLED']`noDISABLED
clusterWhich ECS cluster to start the task in.no
override-containerWill use `containerOverrides` to run a custom command on the container. If provided, `override-container-command` must also be set.no
override-container-commandThe command to run on the container if `override-container` is passed.no
override-container-environmentAdd or override existing environment variables if `override-container` is passed. Provide one per line in key=value format.no
tail-logsIf set to true, will try to extract the logConfiguration for the first container in the task definition. If `override-container` is passed, it will extract the logConfiguration from that container. Tailing logs is only possible if the provided container uses the `awslogs` logDriver.notrue
task-wait-until-stoppedWhether to wait for the task to stop before finishing the action. If set to false, the action will finish immediately after the task reaches the `RUNNING` state (fire and forget).notrue
task-start-max-wait-timeHow long to wait for the task to start (i.e. reach the `RUNNING` state) in seconds. If the task does not start within this time, the pipeline will fail.no120
task-stop-max-wait-timeHow long to wait for the task to stop (i.e. reach the `STOPPED` state) in seconds. The task will not be canceled after this time, the pipeline will just be marked as failed.no300
task-check-state-delayHow long to wait between each AWS API call to check the current state of the task in seconds. This is useful to avoid running into AWS rate limits. **However**, setting this too high might cause the Action to miss the time-window your task is in the "RUNNING" state (if you task is very short lived) and can cause the action to fail.no6
namedescription
task-arnThe full ARN for the task that was ran.
task-idThe ID for the task that was ran.
log-outputThe log output of the task that was ran, if `tail-logs` and `task-wait-until-stopped` are set to true.