Use this action to render an Amazon Elastic Container Service (ECS) task definition.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
No |
The path to the ECS task definition JSON file. Required only if |
|
String |
Yes |
The container name as defined in the ECS task definition (in |
|
String |
Yes |
The container image URL. |
|
JSON |
No |
Container variables , formatted as JSON data in key/value pairs. |
|
String |
No |
The path of the file that contains the environment variables. |
In your YAML file, add:
- name: Render task definition
uses: cloudbees-io/ecs-render-task-definition@v1
with:
task-definition: test/taskDefinition.json
container-name: container_name
image: ${{ vars.IMAGE_URL }}
environment-variables: '{"LOG_LEVEL"="info","ENVIRONMENT"="prod"}'
environment-variables-path: sample/example.jsonThis code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.