Skip to content

Create new VPC for Cadre

Chathuri Peli Kankanamalage edited this page Mar 4, 2020 · 5 revisions

Using AWS console

  • make sure you are in the correct region.
  • Select services -> VPC
  • Click on 'Launch VPC Wizard'
  • Select 'VPC with public and private subnets'
  • Give appropriate names for VPC name, availability zone, public subnet name, private subnet name, and CIDR blocks
  • Specify elastic ip for NAT gateway
  • Add s3 endpoint as a service endpoint
  • Then click on "Create VPC"

Subnets

  • Click on subnets and make sure you have a private subnet and public subnet created

Route tables

  • Create 2 route tables, one for public subnets and another for private subnets
  • One created for public subnets will be the main route table for the VPC. main routing table
  • Add internet gateway and any defined VPC endpoints as routes Routes
  • Add public subnets associated with VPC as subnet association Subnet Association
  • One created for private subnets will have the private subnets as subnet associations and nat gateway as a route. Private Route Table Routes Subnet Association

EC2 Instances

Public Subnet:

  • Bastion host
  • Web Gateway

Private Subnet:

  • Login backend
  • Data API
  • Cadre Metadatabase
  • Jupyter Driver, Kubernetes master and nodes
  • Cadre Website
  • Janus server, Elastic search server, Cassandra cluster

AWS Services

  • Elastic Beanstalk instance
  • EFS
  • SQS FIFO queues
  • Cognito user pool

Cadre VPC Diagram

Cadre-VPC