Installing Pivotal Cloud Foundry on AWS

Page last updated:

This topic describes how to install Pivotal Cloud Foundry (PCF) on Amazon Web Services (AWS) using the PCF CloudFormation template.


The following sections describe general requirements for running PCF and specific requirements for running PCF on AWS.

General Requirements

The following are general requirements for deploying and managing a PCF deployment with Ops Manager and Elastic Runtime:

  • (Recommended) Ability to create a wildcard DNS record to point to your router or load balancer. Alternatively, you can use a service such as For example,

    Elastic Runtime gives each application its own hostname in your app domain. With a wildcard DNS record, every hostname in your domain resolves to the IP address of your router or load balancer, and you do not need to configure an A record for each app hostname. For example, if you create a DNS record * pointing to your router, every application deployed to the domain resolves to the IP address of your router.

  • (Recommended) A network without DHCP available for deploying the Elastic Runtime VMs

    Note: If you have DHCP, refer to the Troubleshooting Guide to avoid issues with your installation.

  • Sufficient IP allocation:

    • One IP address for each VM instance
    • An additional IP address for each instance that requires static IP addresses
    • An additional IP address for each errand
    • An additional IP address for each compilation worker: IPs needed = VM instances + static IPs + errands + compilation workers

      Note: BOSH requires that you allocate a sufficient number of additional dynamic IP addresses when configuring a reserved IP range during installation. BOSH uses these IP addresses during installation to compile and deploy VMs, install Elastic Runtime, and connect to services. We recommend that you allocate at least 36 dynamic IP addresses when deploying Ops Manager and Elastic Runtime.

  • The most recent version of the Cloud Foundry Command Line Interface (cf CLI)

  • One or more NTP servers if not already provided by your IaaS

AWS Requirements

The following are the minimum resource requirements for maintaining a HA Pivotal Cloud Foundry (PCF) deployment with Ops Manager and Elastic Runtime on Amazon Web Services infrastructure:

  • 3 Elastic Load Balancers
  • 1 Relational Database Service. Pivotal recommends at least a db.m3.xlarge instance with 100 GB of allocated storage.
  • 5 S3 buckets
  • EC2 instances (VMs):
    • Elastic Runtime: At a minimum, a new AWS deployment requires the following VMs for Elastic Runtime:
      Elastic Runtime and Ops Manager VM Type VM Count
      t2.micro 24
      t2.small 4
      t2.medium 4
      m4.large 5
      m3.xlarge 3
      m4.xlarge 3
      m3.2xlarge 3
      c4.xlarge 4
      By default, Elastic Runtime deploys the number of VM instances required to run a highly available (HA) configuration of PCF. If you are deploying a test or sandbox PCF that does not require HA, you can scale down the number of instances in your deployment. For information about the number of instances required to run a minimal, non-HA PCF deployment, see Scaling Elastic Runtime.
    • Small Footprint Runtime: To run Small Footprint Runtime, a new AWS deployment requires:
      AWS Requirements VM Type VM Count Notes
      Small Footprint Runtime m4.large 1
      r4.large 1
      r4.xlarge 2
      t2.micro 13 Add 1 to count if using HAProxy
      t2.small 3
      Ops Manager m4.large 1
      c4.xlarge 4

In addition to the resources above, you must have the following to install PCF on AWS:

  • An AWS account that can accommodate the minimum resource requirements for a PCF installation.
  • The appropriate region selected within your AWS account. For help selecting the correct region for your deployment, see the AWS documentation about regions and availability zones.
  • The AWS CLI installed on your machine and configured with user credentials that have admin access to your AWS account.
  • Sufficiently high instance limits, or no instance limits, on your AWS account. Installing PCF requires more than the default 20 concurrent instances.
  • A key pair to use with your PCF deployment. For more information, see the AWS documentation about creating a key pair.
  • A registered wildcard domain for your PCF installation. You need this registered domain when configuring your SSL certificate and Cloud Controller. For more information, see the AWS documentation about Creating a Server Certificate.
  • An SSL certificate for your PCF domain. This can be a self-signed certificate, but Pivotal recommends using a self-signed certificate for testing and development. You should obtain a certificate from your Certificate Authority for use in production. For more information, see the AWS documentation about SSL certificates.

Install PCF on AWS

You can install PCF on AWS in one of the following ways:

Delete PCF on AWS

You can use the AWS console to remove an installation of all components, but retain the objects in your bucket for a future deployment:

Create a pull request or raise an issue on the source for this page in GitHub