Bakery's "Hello World" Example

This documentation assumes you have already signed in, and gone through the Getting Started wizard to set up your AWS account. If you haven't done that already, go do that now.

Add the examples Git Repository

  1. Go to your organization's dashboard
  2. Under the Bakery, add a new Git Repository with the following details:
    Name:  Bakery Examples
    Clone URL:
    Website URL:

The details page shows you a Deploy Key. Since you are using a public Git repository, you can skip this step.

Create a Build Pipeline

  1. Go back to your organization's dashboard
  2. Under Bakery, click Build Pipelines.
  3. Click Create a new Build Pipeline.
  4. Enter "Hello World" for the Name of the pipeline.

This first section is all about AWS:

  1. Select your AWS Account from the list.
  2. You can use any region you like, but for this example, we will use:

    us-east-1 (N. Virginia)
  3. Now we choose which AMI to use as the base. Any AMI can be used, but in this example, we are going to use Ubuntu 14.04. Enter

  4. The Virtualization type for this AMI is HVM, so select that.

That's the AWS section complete, now we move to the Ansible section.

  1. The default version of Ansible fine.
  2. Select the Git Repository we added earlier from the list

    Bakery Examples
  3. Path to Ansible playbook

  4. Skip the CI Integration section for now

  5. Click Create Build Pipeline

Bake an AMI

Now for the moment of truth... click the blue Bake an AMI button.

This will show the details of the Bake process. Once we figure out AngularJS, this will be amazing, but for now, refresh the page every 30 seconds or so to see the progress.

The Bakery uses CloudFormation to bring up the required AWS resources (security group, IAM role, EC2 instance, etc). Once the CloudFormation Stack enters CREATE_COMPLETE, you can click on Bake Log and see Ansible being installed, and then running the hello-world.yml playbook.

If everything goes to plan, a snapshot of the EBS volume your AMI is being build on will be made, and the AMI registered.


If you are in a place where it is socially acceptable, take a shot to celebrate. Beer is also fine. :-)

Where to next?

Well, the AMI has been built, why not launch an EC2 instances using it and marvel in your genius?

What do you think of this page? Tell us about it