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.

Step 1: 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/v1/mcd-cross-account-role.yaml
  2. Deploy the stack in the same AWS account / region as your resource. Fill in the parameter.
1978

Parameters Wizard

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

Step 2: Create Requester CloudFormation stack

❗️

If you deployed your Data Collector in an existing (customer managed) VPC with subnets that have more than one route table please reach out to your Monte Carlo representative.

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

Parameters Wizard

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

Step 3: Create Accepter CloudFormation stack

❗️

If your Resource's subnets use more than three route tables please reach out to your Monte Carlo representative.

  1. Download and review the CloudFormation template.
    https://prod-us-east-1-mcd-data-collector.s3.amazonaws.com/peering/v1/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.
1990

Parameters Wizard