CloudBees action: Render an Amazon ECS task definition

1 minute read

Use this action to render an Amazon Elastic Container Service (ECS) task definition.

All CloudBees action repositories are listed at CloudBees, Inc. on GitHub.

Inputs

Table 1. Input details
Input name Data type Required? Description

task-definition

String

No

The path to the ECS task definition JSON file. Required only if task-definition-name is not specified.

container-name

String

Yes

The container name as defined in the ECS task definition (in containerDefinitions).

image

String

Yes

The container image URL.

environment-variables

JSON

No

Container variables, formatted as JSON data in key/value pairs.

environment-variables-path

String

No

The path of the file that contains the environment variables.

Usage example

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.json