VPC Peering using CloudFormation

For resources (e.g. Redshift, Tableau, etc.) that require peering to connect with the Data Collector, the following CloudFormation templates can be used to automate the process and help manage resources as code.

In order to peer the requester (Data Collector) and accepter (Your Resource), follow these steps -

  1. Create Peering Cross Account assumable role CloudFormation stack.
  2. Create Requester CloudFormation stack.
  3. Create Accepter CloudFormation stack.

🚧

Check if the resource you want to peer with is publicly accessible

Peering might not be necessary in this scenario. See here for more details.

🚧

Check for any CIDR block overlaps between the Data Collector and your resource

VPC peering is not possible when the peered VPCs use overlapping CIDR blocks. If this case emerges, you may choose to use a custom CIDR block for your Monte Carlo data collector. See here for details.

Create Peering Cross Account assumable role CloudFormation stack

👍

This step might not be required

This step is only necessary if the requester (Data Collector) and accepter (Your Resource) are not in the same AWS account.

  1. Download and review the CloudFormation template.
    https://prod-us-east-1-mcd-data-collector.s3.amazonaws.com/peering/v0/mcd-cross-account-role.yaml
  2. Deploy the stack in the same AWS account / region as your resource. Fill in the parameter.
Parameters WizardParameters Wizard

Parameters Wizard

  1. Retrieve the PeeringRole from the stack outputs. This will be used in the next step.

Create Requester CloudFormation stack

  1. Download and review the CloudFormation template.
    https://prod-us-east-1-mcd-data-collector.s3.amazonaws.com/peering/v0/mcd-requester.yaml
  2. Deploy the stack in the same AWS account / region as the the requester (Data Collector). Fill in the parameters from the Data Collector and Your Resource.
Parameters WizardParameters Wizard

Parameters Wizard

  1. Retrieve the PeeringConnection from the stack outputs. This will be used in the next step.

Create Accepter CloudFormation stack

  1. Download and review the CloudFormation template.
    https://prod-us-east-1-mcd-data-collector.s3.amazonaws.com/peering/v0/mcd-accepter.yaml
  2. Deploy the stack in the same AWS account / region as the accepter (Your Resource). Fill in the parameters from the Data Collector and your Resource.
Parameters WizardParameters Wizard

Parameters Wizard


Did this page help you?