CloudBees action: Deploy a binary with Amazon EC2

1 minute read

Use this action to deploy an Amazon Elastic Compute Cloud (Amazon EC2) binary. Amazon EC2 is a web service of Amazon Web Services (AWS).

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

Inputs

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

aws-host

String

Yes

The Amazon EC2 host URL.

aws-ssh-key-data

String

Yes

The AWS SSH key data.

aws-user

String

Yes

The AWS user to connect as.

source-location

String

Yes

The source location to copy files from.

destination-ec2-location

String

Yes

The destination location in the Amazon EC2 host.

deploy-command

String

No

The command to execute after deploying to the destination location.

deploy-script

String

No

The script file to execute after deploying to the destination location.

Usage example

In your YAML file, add:

- name: Deploy EC2 binary uses: cloudbees-io/ec2-deploy-binary@v1 with: source-location: workspace/test/* destination-ec2-location: /home/ubuntu/mydeploys/helloworld/ aws-ssh-key-data: ${{ secrets.AWS-DEPLOY-KEY }} aws-user: ubuntu aws-host: ${{ secrets.AWS-HOST }} deploy-script: script1.sh