Skip to content

nicknameyu/cdp-private-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDP Public Cloud Private Network

The template in this repo is NOT to create CDP installation. It's to create a hub-spoke network, custom private DNS, Firewall, as well as jump servers to mimic the MOST TYPICAL customer network setup. So that internal engineers can reproduce the problems they run into or test some assumptions easier.

Usage

  • Populate terraform.tfvars file and run terraform command to deploy the resources

AWS

  • The network environment contains
    • Core VPC to hold the jump server, DNS server, Firewall, NAT gateway
      • core subnet
      • NAT gateway subnet
      • Firewall subbet
      • private subnet
      • A linux Jump server with public IP
      • A windows DNS server with Public IP. The DNS server needs manual configuration.
    • CDP VPC for the CDP deployment
      • 3 subnets each in different AZ
      • A Linux jump server
      • Private DNS resolver
      • DHCP option set is created with a variable to control wither to use AWS default DNS or custom private DNS.
        • CDW doesn't support custom private DNS. Please leave variable custom_dns to false when deploying DW
        • DE/DF/ML support custom private DNS. When testing custom private DNS, user can set custom_dns to true.
          • Please also configure the DNS server in the core VPC to conditional forward efs.<region>.amazonaws.com to the DNS private resolver inbound IP addresses.
      • S3 VPC Gateway endpoint and related route rules
    • AWS transit gateway to connect the CDP VPC with the core VPC
    • CDP prerequisite resources
      • S3 bucket
      • Cross account role
      • IAM policies, roles, instance profiles

aws architecture

Azure

  • The network environment contains
  • HUB VNET to hold the jump server, DNS server, Firewall.
    • Firewall subnet
    • core subnet
      • A Windows 11 VM
      • A Ubuntu Linux server as a custom DNS server and also a jump VM.
  • CDP VNET
    • A few subnets with different CIDR range for testing. All subnets have service endpoint enabled for storage, SQL, and KeyVault.
    • A DNS resolver subnet
    • A Postgres DB Flexible server delegated subnet
    • A Linux jump server
  • DNS server forward setting.
    • DNS server is automatically configured to forward DNS request to Azure Default DNS
    • Conditional forward is configured to dns_resolver_inbound_ip for privatelink domains.
      • mysql.database.azure.com
      • privatelink.<region>.azmk8s.io
      • <region>.postgres.database.azure.com
    • Below conditional forward settings are not configured by default.
      • privatelink.blob.core.windows.net: if service endpoint is not allowed
      • privatelink.file.core.windows.net: if service endpoint is not allowed

azure architecture

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages