{
  "builders": [
    {
      "type": "amazon-ebs",
      "region": "us-east-1",
      "source_ami": "ami-08111162",
      "instance_type": "m3.medium",
      "ssh_username": "ec2-user",
      "ami_name": "buildkite-stack-{{isotime | clean_ami_name}}",
      "ami_description": "Buildkite CloudFormation Stack base image (Amazon Linux, buildkite-agent, docker, docker-compose, docker-gc, jq, lifecycled)",
      "ami_groups": ["all"]
    }
  ],
  "provisioners": [
    {
      "type": "file",
      "source": "conf",
      "destination": "/tmp"
    },
    {
      "type": "shell",
      "script": "scripts/install-awslogs.sh"
    },
    {
      "type": "shell",
      "script": "scripts/install-lifecycled.sh"
    },
    {
      "type": "shell",
      "script": "scripts/install-docker.sh"
    },
    {
      "type": "shell",
      "script": "scripts/install-buildkite-agent.sh"
    },
    {
      "type": "shell",
      "inline":
        [ "sudo pip install ansible docker-py"]
    },
    {
      "type": "ansible-local",
      "playbook_file": "../ansible/build-node.yml",
      "extra_arguments": [ "-vv" ]
    }
  ]
}

{
  "builders": [
    {
      "type": "amazon-ebs",
      "region": "us-west-2",
      "source_ami": "ami-7172b611",
      "instance_type": "m3.medium",
      "ssh_username": "ec2-user",
      "ami_name": "buildkite-stack-{{isotime | clean_ami_name}}",
      "ami_description": "Buildkite CloudFormation Stack base image (Amazon Linux, buildkite-agent, docker, docker-compose, docker-gc, jq, lifecycled)",
      "ami_groups": ["all"]
    }
  ],
  "provisioners": [
    {
      "type": "file",
      "source": "conf",
      "destination": "/tmp"
    },
    {
      "type": "shell",
      "script": "scripts/install-awslogs.sh"
    },
    {
      "type": "shell",
      "script": "scripts/install-lifecycled.sh"
    },
    {
      "type": "shell",
      "script": "scripts/install-docker.sh"
    },
    {
      "type": "shell",
      "script": "scripts/install-buildkite-agent.sh"
    },
    {
      "type": "shell",
      "inline":
        [ "sudo pip install ansible docker-py"]
    },
    {
      "type": "ansible-local",
      "playbook_file": "../ansible/build-node.yml",
      "extra_arguments": [ "-vv" ]
    }
  ]
}

Use Amazon Linux base image in us-west-2
Use Amazon Linux base image in us-west-2
