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