Site icon

Shared VPC Subnets across AWS accounts with ACI/CNC Fabric

Table of Contents:

  1. Introduction
  2. High Level Architecture for sharing subnets across AWS accounts
  3. Testing For Reachability
  4. References

Introduction

Sometimes it may be desired to stretch subnets across AWS VPCs in different AWS accounts. This could be a requirement for some sort of application High Availability or it could be a requirement to segregate administrative responsibilities for tiers of applications.

AWS supports VPC Subnet Sharing for this purpose. You could spin up a VPC/Subnet in AWS Account X and share that subnet to AWS Account Y using AWS RAM (Resource Access Manager).

This solution also works with CNC Fabric

⚠️ There are some limitations you should know about sharing subnets. 2 of the important ones are listed below:

High Level Architecture for sharing subnets across AWS accounts

The figure below shows an example of a high level architecture example of sharing CNC Tenant subnet across AWS accounts.


Figure 1: architecture for sharing subnets across AWS Tenant Account in CNC Fabric

Points to note in the above figure as follows:

⚠️ Note that when onPrem VM tries to access AWS Acct:Y VM, the packets actually traverse through AWS Acct: X. If there is a complete zone failure in Acct: X then in this case, onPrem cannot reach EC2 on AWS Acct: Y either.

The IPs of the VMs/EC2s are as follows:

Location Description IP
onPrem VM the onPrem VM 10.240.1.10/24
AWS Acct: X EC2 This VPC/subnet has been shared to AWS Acct Y: 10.40.1.17/25
AWS Acct: Y EC2 The VPC/subnet shared from AWS Account X 10.40.1.122/25

Testing For Reachability

The following screenshots show that onPrem VM can ping EC2 in AWS Account X and EC2 in AWS Account Y


Figure 2: Testing for Reachability

References

https://docs.aws.amazon.com/vpc/latest/userguide/vpc-sharing.html#vpc-share-limitations

Exit mobile version