Configuration
Info | ||
---|---|---|
| ||
There is an unfortunate entity naming overlap between Atlassian Bamboo Tasks and Amazon ECS Tasks - rather than adding to the confusion by introducing yet another name, this documentation will refer to an Amazon ECS Task task as needed. |
To configure an Amazon ECS Task task:
- Navigate to the Tasks configuration tab for the job (this will be the default job if creating a new plan).
- Click the name of an existing Amazon ECS Task task, or click Add Task and then Amazon ECS Task to create a new task.
Complete the following settings:
Common to all tasks
Include Page _CommonTaskParametersTable _CommonTaskParametersTable Actions supported by this task:
Run Task
shortCluster Name or ARN (Optional) Specify the
fullcluster name or
of the cluster that you want to run your task onAmazon Resource Name (ARN)
.
full- If you do not specify a cluster, the default cluster is assumed.
Task Definition Specify the family and revision (family:revision) or
that you want to run in your serviceAmazon Resource Name (ARN) of the task definition
of the specified task that you would like to place on your clusterto use. Count (Optional) Specify the number of task instances
to send when running a task.to run once. Group (Optional) Specify the name of the task group to associate with the task. Placement Strategy (Optional) Specify placement strategy objects in JSON format. - Your can optionally use strategies for selecting instances for task placement – refer to Amazon ECS Task Placement Strategies for details.
Placement Constraints (Optional) Specify placement constraint objects in JSON format. - Your can optionally use constraints to manage placement – refer to Amazon ECS Task Placement Constraints for details.
Overrides (Optional) Specify one or more container overrides in JSON format Start
fullto use. Started By (Optional) Specify a tag to apply when the task is started. Advanced Options Desired Status Select the desired status the task(s) should reach. Since 2.13.0: see below. Await Desired Status Timeout Specify how long to await the task(s) reaching the desired status (seconds, 0 to skip). Since 2.13.0: select 'Running or Stopped' with a timeout longer than the Bamboo build timeout to replicate the previous behavior. Start Task
Cluster Name or ARN see Run above Task Definition see Run above Container Instances Specify a JSON array of container instance UUIDs or
you would likeAmazon Resource Name (ARN) entries for the container instances on which
yourto place the task. Overrides (Optional) Specify one or more container overrides in JSON format to send when running a task.
Stop
task you would like to stopsee Run above
Started By see Run above Advanced Options Desired Status see Run above Await Desired Status Timeout see Run above Stop Task
Cluster Name or ARN see Run above
Task UUID or ARN Specify the task UUIDs or full Amazon Resource Name (ARN) entry of the task. Reason Specify the reason for the task being stopped.
Variables
Include Page | ||||
---|---|---|---|---|
|
Run Task
Code Block | ||||
---|---|---|---|---|
| ||||
Creating common variables for 1 tasks: ... bamboo.custom.aws.ecs.task.resources: 20b85717-337a-4b64-839f-630517b0c7c0 Creating resource variables for task '20b85717-337a-4b64-839f-630517b0c7c0': ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.ClusterArn: arn:aws:ecs:us-east-1:309600995652:cluster/taws-it-270-29 ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.ContainerInstanceArn: arn:aws:ecs:us-east-1:309600995652:container-instance/04e43cc4-2a6c-450e-bcee-35d076e010b4 ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.DesiredStatus: RUNNING ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.LastStatus: RUNNING ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.StartedBy: null ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.StartedAt: 20151204T181331Z ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.StoppedAt: null ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.StoppedReason: null ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.TaskArn: arn:aws:ecs:us-east-1:309600995652:task/20b85717-337a-4b64-839f-630517b0c7c0 ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.TaskDefinitionArn: arn:aws:ecs:us-east-1:309600995652:task-definition/taws-it-270-sleep:100 ... bamboo.custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.Version: 3 Creating common variables for first resource affected by task: Creating resource variables for task '20b85717-337a-4b64-839f-630517b0c7c0': ... bamboo.custom.aws.ecs.task.first.ClusterArn: arn:aws:ecs:us-east-1:309600995652:cluster/taws-it-270-29 ... bamboo.custom.aws.ecs.task.first.ContainerInstanceArn: arn:aws:ecs:us-east-1:309600995652:container-instance/04e43cc4-2a6c-450e-bcee-35d076e010b4 ... bamboo.custom.aws.ecs.task.first.DesiredStatus: RUNNING ... bamboo.custom.aws.ecs.task.first.LastStatus: RUNNING ... bamboo.custom.aws.ecs.task.first.StartedBy: null ... bamboo.custom.aws.ecs.task.first.StartedAt: 20151204T181331Z ... bamboo.custom.aws.ecs.task.first.StoppedAt: null ... bamboo.custom.aws.ecs.task.first.StoppedReason: null ... bamboo.custom.aws.ecs.task.first.TaskArn: arn:aws:ecs:us-east-1:309600995652:task/20b85717-337a-4b64-839f-630517b0c7c0 ... bamboo.custom.aws.ecs.task.first.TaskDefinitionArn: arn:aws:ecs:us-east-1:309600995652:task-definition/taws-it-270-sleep:100 ... bamboo.custom.aws.ecs.task.first.Version: 3 |
Start Task
See Run above.
Stop Task
See Run above.
How-to Articles
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Frequently Asked Questions (FAQ)
Questionslist macro | ||||||||
---|---|---|---|---|---|---|---|---|
|