CloudBees AWS deployment actions provide inputs for deploying to Amazon EC2, ECS, Elastic Beanstalk, CodeDeploy, and Lambda. Use this reference alongside Deploy to AWS.
EC2 actions
EC2 actions deploy binaries to Amazon EC2 hosts.
ec2-deploy-binary
The cloudbees-io/ec2-deploy-binary action copies files to an Amazon EC2 host and optionally executes a command or script after deployment.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The Amazon EC2 host URL. |
|
String |
Yes |
The AWS SSH key data. |
|
String |
Yes |
The AWS user to connect as. |
|
String |
Yes |
The source location to copy files from. |
|
String |
Yes |
The destination location in the Amazon EC2 host. |
|
String |
No |
The command to execute after deploying to the destination location. |
|
String |
No |
The script file to execute after deploying to the destination location. |
ECS actions
ECS actions render task definitions and deploy to Amazon ECS clusters.
ecs-render-task-definition
The cloudbees-io/ecs-render-task-definition action renders an Amazon ECS task definition by injecting a container image and optional environment variables into an existing definition.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Required only if |
The ECS task definition name. |
|
String |
Required only if |
The path to the ECS task definition JSON file. |
|
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. |
ecs-deploy-task-definition
The cloudbees-io/ecs-deploy-task-definition action deploys to an Amazon ECS cluster using either a service name or a task definition.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Required only if |
The path to the ECS task definition JSON file. |
|
String |
Required only if |
The name of the ECS service to deploy to. |
|
String |
Yes |
The name of the ECS cluster to deploy to. |
|
Boolean |
Yes |
Whether to wait for the ECS service to reach a stable state after deploying the new task definition.
Default value is |
|
String |
Yes |
The amount of time to wait for the ECS service to reach a stable state, in minutes.
The default is |
|
Boolean |
Yes |
Whether to force a new service deployment.
Default value is |
Elastic Beanstalk actions
Elastic Beanstalk actions create application versions and update environments.
aws-elastic-beanstalk-invoke-deployment
The cloudbees-io/aws-elastic-beanstalk-invoke-deployment action creates a new application version from a source bundle and updates an AWS Elastic Beanstalk environment.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The Elastic Beanstalk application name. |
|
String |
Yes |
The S3 bucket name. |
|
String |
Yes |
The S3 key for the source bundle. |
|
String |
Yes |
The Elastic Beanstalk application version label to be created from the source bundle. |
|
String |
Yes |
The name of the Elastic Beanstalk environment to be updated. |
CodeDeploy actions
CodeDeploy actions trigger deployments and retrieve run information as output.
aws-codedeploy-invoke-deployment
The cloudbees-io/aws-codedeploy-invoke-deployment action triggers an AWS CodeDeploy deployment.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The AWS CodeDeploy application name. |
|
String |
Yes |
The name of the deployment configuration. |
|
String |
Yes |
The name of the deployment group. |
|
String |
Yes |
Additional information about the deployment. |
|
String |
Yes |
The type of application revision. |
|
String |
No |
The configuration for an automatic rollback, added when a deployment is created. |
|
JSON |
No |
The event type or types that trigger a rollback. |
|
String |
No |
How AWS CodeDeploy handles files that already exist in a deployment target location but were not part of the previous successful deployment. |
|
Boolean |
No |
If an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic deployment lifecycle event on an instance fails, and |
|
JSON |
No |
A list of alarms configured for the deployment or deployment group. |
|
String |
No |
Indicates whether the alarm configuration is enabled. |
|
String |
No |
The content of an AppSpec file for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString. |
|
String |
No |
The SHA256 hash value of the revision content. |
|
String |
No |
The content of a string input for an AWS Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString. |
|
String |
No |
The SHA256 hash value of the revision content. |
|
String |
No |
The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision. |
|
String |
No |
The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision. |
|
String |
No |
The name of the Amazon S3 bucket where the application revision is stored. |
|
String |
No |
The file type of the application revision. |
|
String |
No |
The name of the Amazon S3 object that represents the bundled artifacts for the application revision. |
|
String |
No |
The specific version of the Amazon S3 object that represents the bundled artifacts for the application revision. |
|
JSON |
No |
The names of one or more Auto Scaling groups to identify a replacement environment for a blue or green deployment. |
|
JSON |
No |
The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue or green deployment. |
|
JSON |
No |
The information about the groups of Amazon EC2 instance tags. |
Lambda actions
Lambda actions create, update, and invoke functions in AWS Lambda.
lambda-create-function
The cloudbees-io/lambda-create-function action creates or updates a function in AWS Lambda.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The AWS Lambda function name. |
|
String |
Yes |
The Identity and Access Management (IAM) name of the function’s execution role, in ARN format. |
|
String |
No |
The type of build input artifact.
Options are |
|
String |
Required only if using an image ( |
The code image resource, such as the Amazon ECR repository URI. |
|
String |
Required only if using a ZIP file ( |
The path to the ZIP file of the code to be uploaded. |
|
String |
Required only if using a ZIP file ( |
The method name in uploaded code that Lambda calls to run the function. |
|
String |
Required only if using a ZIP file ( |
The Lambda function runtime. |
|
String |
Required only if using an Amazon S3 bucket. |
The Amazon S3 bucket name. |
|
String |
Required only if using an Amazon S3 bucket. |
The Amazon S3 bucket object name. |
|
JSON string |
No |
The instruction set architecture that the function supports. |
|
String |
No |
The Amazon Resource Name (ARN) for a code-signing configuration. |
|
JSON string |
No |
The location where the Lambda function sends asynchronous events that fail to process. |
|
String |
No |
The Lambda function description. |
|
Boolean |
No |
Default is |
|
JSON string |
No |
The environment variables accessible from the function code during execution. |
|
JSON string |
No |
The size of the Lambda function |
|
JSON string |
No |
The Amazon EFS file system connection settings. |
|
JSON string |
No |
The container image configuration values that override the container image Dockerfile values. |
|
String |
No |
The ARN of the AWS Key Management Service (KMS) customer-managed key used to encrypt your function’s environment variables. |
|
JSON string |
No |
The list of function layers to add to the Lambda function’s execution environment. |
|
Integer |
No |
The amount of memory available to the Lambda function at runtime. |
|
Boolean |
No |
Default is |
|
String |
No |
The latest updated revision ID. If specified, the Lambda function is only updated if the revision ID matches the latest updated revision ID. |
|
String |
No |
The Amazon S3 bucket object version. |
|
JSON string |
No |
The SnapStart configuration to run the Lambda function with a pre-initialized snapshot. |
|
JSON string |
No |
The Lambda function tag list. |
|
Integer |
No |
The allowed amount of time, in seconds, that a Lambda function runs before it is stopped. |
|
JSON string |
No |
The AWS X-Ray tracing configuration in the Lambda function. To sample and record incoming requests, enable X-Ray active tracing in the Lambda functions console. |
|
JSON string |
No |
The VPC security groups and subnets for network connectivity to AWS resources. |
lambda-invoke-function
The cloudbees-io/lambda-invoke-function action invokes an existing function in AWS Lambda.
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Yes |
The AWS Lambda function name. |
|
JSON |
No |
The input to provide to your Lambda function, formatted as JSON data in key/value pairs. |