- unmigrated-wiki-markup
Documentation for Tasks for AWS 2.7 – other releases are available in the Tasks for AWS Documentation Directory.
View
or visit the current documentation home.
Using the Amazon ECS Task task in Bamboo
Configuration
Naming Overlap
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
Task Description (Optional) Identify the purpose of the task. Disable this task Check, or clear, to selectively run this task.
Action Each task supports one or more actions depending on the target AWS resource. Select the desired action and configure the action specific parameters below.
Region Select the desired AWS Region. Alternatively, select [Use region variable ...] to supply the region dynamically via Bamboo variables (needs to be a region code such as ap-southeast-2
) - refer to How to parametrize the AWS region via a Bamboo variable for details.... Configure task/action specific parameters, see below ... AWS Security Credentials Source Select the source for the required AWS Security Credentials - can be either Inline, an IAM Role for EC2 or a shared Identity Federation for AWS Connector. Connector (Conditional) Select the shared Identity Federation for AWS Connector. Alternatively, select [Use connector variable ...] to supply the connector dynamically via Bamboo variables (needs to be a connector id such as f24e81bc-7aff-42db-86a2-7cf82e24d871
) - refer to How to parametrize the AWS connector via a Bamboo variable for details.Actions supported by this task:
Run
Cluster Name or ARN (Optional) Specify the short name or full Amazon Resource Name (ARN) of the cluster that you want to run your task on.
- If you do not specify a cluster, the default cluster is assumed.
Task Definition Specify the family and revision (family:revision) or full Amazon Resource Name (ARN) of the task definition that you want to run in your service. Count (Optional) Specify the number of instances of the specified task that you would like to place on your cluster. Overrides (Optional) Specify one or more container overrides in JSON format to send when running a task. Start
Cluster Name or ARN see Run above Task Definition see Run above Container Instances Specify a JSON array of container instance UUIDs or full Amazon Resource Name (ARN) entries for the container instances on which you would like to place your task. Overrides (Optional) Specify one or more container overrides in JSON format to send when running a task.
Stop
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 you would like to stop.
Variables
All tasks support Bamboo Variable Substitution/Definition - this task's actions generate variables as follows:
Run
Creating common variables for 1 tasks: ... custom.aws.ecs.task.resources: 20b85717-337a-4b64-839f-630517b0c7c0 Creating resource variables for task '20b85717-337a-4b64-839f-630517b0c7c0': ... custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.ClusterArn: arn:aws:ecs:us-east-1:309600995652:cluster/taws-it-270-29 ... 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 ... custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.DesiredStatus: RUNNING ... custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.LastStatus: RUNNING ... custom.aws.ecs.task.resources.20b85717-337a-4b64-839f-630517b0c7c0.TaskArn: arn:aws:ecs:us-east-1:309600995652:task/20b85717-337a-4b64-839f-630517b0c7c0 ... 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 Creating common variables for first resource affected by task: Creating resource variables for task '20b85717-337a-4b64-839f-630517b0c7c0': ... custom.aws.ecs.task.first.ClusterArn: arn:aws:ecs:us-east-1:309600995652:cluster/taws-it-270-29 ... custom.aws.ecs.task.first.ContainerInstanceArn: arn:aws:ecs:us-east-1:309600995652:container-instance/04e43cc4-2a6c-450e-bcee-35d076e010b4 ... custom.aws.ecs.task.first.DesiredStatus: RUNNING ... custom.aws.ecs.task.first.LastStatus: RUNNING ... custom.aws.ecs.task.first.TaskArn: arn:aws:ecs:us-east-1:309600995652:task/20b85717-337a-4b64-839f-630517b0c7c0 ... custom.aws.ecs.task.first.TaskDefinitionArn: arn:aws:ecs:us-east-1:309600995652:task-definition/taws-it-270-sleep:100
Start
See Run above.
Stop
See Run above.
How-to Articles
-
Questions:
-
-
Questions:
-
-
-
Questions: