Our most popular Steps for AWS

Wercker is a Docker-Native CI/CD Automation platform for Kubernetes & Microservice Deployments

Aaron Rice
Aaron Rice
November 7, 2016

The Install AWS CLI step is one of the most downloaded Steps on the Wercker Steps Registry

Install AWS CLI

The Install AWS CLI step is one of the most downloaded Steps on the Wercker Steps Registry. It's a relatively simple shell script that gets the latest AWS CLI application from AWS, installs it, and configures access keys, which allows any subsequent steps access to a given AWS account.

For example:

- edgecaseadmin/install-aws-cli:
key: $AWS_KEY
secret: $AWS_SECRET
region: $AWS_REGION
- script:
name: "Push application build to S3"
code: |
aws s3 cp artifact.tar.gz s3://myamazingnamespace/my-wordpress-app-1.2.1.tar.gz

In the above example you would have installed the AWS CLI, configured it with keys that would have been set as environment variables on Wercker Web, then pushed a build artefact to Amazon S3.

Elastic Beanstalk Deploy

The EB-Deploy plugin Step deploys applications to AWS Elastic Beanstalk from within your pipelines.

For example:

- koding/eb-deploy@0.31.0:
access-key: $AWS_KEY
secret-key: $AWS_SECRET
app-name: my-wordpress-app
env-name: prod
version-label: 1.2.1
region: $AWS_REGION
s3-bucket: s3://myamazingnamespace/
s3-key: my-wordpress-app-1.2.1.tar.gz

In the above example, the step would have triggered an AWS Elastic Beanstalk deploy of your application using environment variables you would have defined on Wercker Web.

AWS Cloudformation

The AWS Cloudformation Step was contributed to the Steps Registry by Wercker. It allows you to launch stacks on AWS Cloudformation from within your Wercker Pipelines.

For example:

- aws-cloudformation:
action: "create-stack"
wait: "true"
template_url: "https://s3.amazonaws.com/cloudformation-templates-us-east1/WordPress_Single_Instance_With_RDS.template"

In the above example, you would have triggered the creation of an AWS EC2 stack for a single instance Wordpress deployment, based on this public AWS Cloudformation template.


The Wercker-submitted Kubectl Step on the Steps Registry allows you to interact with Kubernetes clusters. Since Amazon EC2 is a popular hosting platform for Kubernetes deployments, you could, for example:

- kubectl:
command: create -f my-wordpress-app-deployment.json

This example would have used the kubectl tool to create a new deployment for your Wordpress application on your EC2-based Kubernetes cluster.

Create your own

The above examples are just a tiny snapshot of the most popular Wercker Steps that integrate with AWS. Check out the Steps Registry for the full directory, and if we happen to be missing a Step that performs an action you require on AWS, you can use our Steps documentation to write your own!


Like Wercker?

Why not join our early access club. We’ll invite you to try our beta products and treat you nice.

As usual, if you want to stay in the loop follow us on twitter @wercker or hop on our public slack channel. If it’s your first time using Wercker, be sure to tweet out your #greenbuilds, and we’ll send you some swag!

Topics: Product, Containers, Steps