Skip to content

Instantly share code, notes, and snippets.

@zxkane
Created September 18, 2019 10:12
Show Gist options
  • Save zxkane/289256b68cfc11e0ae8507b513439710 to your computer and use it in GitHub Desktop.
Save zxkane/289256b68cfc11e0ae8507b513439710 to your computer and use it in GitHub Desktop.
The private hosted route of Route53 associates with the VPC in another account
export AWS_DEFAULT_PROFILE=account_a(has route53)
aws route53 create-vpc-association-authorization --hosted-zone-id zoneid --vpc VPCRegion=ap-southeast-1,VPCId=vpc-xxxx
export AWS_DEFAULT_PROFILE=account_b(has vpc-xxxx)
aws route53 associate-vpc-with-hosted-zone --hosted-zone-id zoneid --vpc VPCRegion=ap-southeast-1,VPCId=vpc-xxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment