zoukankan      html  css  js  c++  java
  • [AWS] Creating a Private Hosted Zone and Associating It with Multiple VPCs

    We are going to create a A private host zone and test this private host zone with VPC1 and VPC2... for VPC3, you can follow the VPC2 as example.

    • Create a private host zone in VPC1, VPC2, VPC3
    • Then create an A record in Route 53 point to instance in VPC 1
    • Then perring VPC1 and VPC2
    • Edit route tables for the subnets in VPC1 and VPC2, point to each other
    • Edit Security Group to point to each other

     

    Create a private host zone

     

    Because we have created private host zone, we need to make sure for VPC1,2,3 they all have enabled DNS hostname and DNS record.

     

    Create an A Record

    The Record name should point to the private IP address of instance 1 in VPC 1

    Perring VPC

    Create a peering connection from VPC1 to VPC2

     

    Then you need to Accpet the perring connection

    Edit route tables

    Edit VPC1 subnet route table to point traffic to VPC2 by going throught peering connection;

     

    Edit VPC2 subnet route table to point traffic to VPC1 by going throught peering connection:

     

    Edit Security Group

    For the instance in VPC1's securty group, should accept inbound rule from VCP2's instance's Security Group

    For the VPC2's instance security group should accpet VPC1's instance's security group

     

     Last, ssh into instance 2 in VPC2, ping host.awscloud.local, from the result, you can see the private ip address of instance1

     

      

  • 相关阅读:
    bzoj1036 [ZJOI2008]树的统计Count(树链剖分)
    poj2348 Euclid's Game
    bzoj3575 [Hnoi2014]道路堵塞
    poj2484 A Funny Game
    bzoj2286 [Sdoi2011]消耗战
    虚树学习笔记
    bzoj4518 [Sdoi2016]征途
    node.js开发环境配置
    js中阻止事件冒泡和浏览器默认行为
    css3 background-clip和background-origin 区别
  • 原文地址:https://www.cnblogs.com/Answer1215/p/15643443.html
Copyright © 2011-2022 走看看