aws route53 list-hosted-zones
)
$ HOSTED_ZONE_ID=<hosted-zone-id> # アカウントAのプライベート ホストゾーンID $ VPC_ID=<vpc-id> # アカウントBの VPC ID $ REGION=ap-northeast-1 # [create-vpc-association-authorization] を実行 $ aws route53 create-vpc-association-authorization \ --hosted-zone-id ${HOSTED_ZONE_ID} \ --vpc VPCRegion=${REGION},VPCId=${VPC_ID} \ --region ${REGION}
$ HOSTED_ZONE_ID=<hosted-zone-id> # アカウントAのプライベート ホストゾーンID $ VPC_ID=<vpc-id> # アカウントBの VPC ID $ REGION=ap-northeast-1 # [associate-vpc-with-hosted-zone] を実行 $ aws route53 associate-vpc-with-hosted-zone \ --hosted-zone-id ${HOSTED_ZONE_ID} \ --vpc VPCRegion=${REGION},VPCId=${VPC_ID} \ --region ${REGION}
アカウントAのRoute53 画面を更新すると、[関連付けられたVPC] にアカウントBの VPC ID が追加されています。
$ HOSTED_ZONE_ID=<hosted-zone-id> # アカウントAのプライベート ホストゾーンID $ VPC_ID=<vpc-id> # アカウントBの VPC ID $ REGION=ap-northeast-1 $ aws route53 list-vpc-association-authorizations \ --hosted-zone-id ${HOSTED_ZONE_ID}
$ HOSTED_ZONE_ID=<hosted-zone-id> # アカウントAのプライベート ホストゾーンID $ VPC_ID=<vpc-id> # アカウントBの VPC ID $ REGION=ap-northeast-1 $ aws route53 delete-vpc-association-authorization \ --hosted-zone-id ${HOSTED_ZONE_ID} \ --vpc VPCRegion=${REGION},VPCId=${VPC_ID} \ --region ${REGION}
$ HOSTED_ZONE_ID=<hosted-zone-id> # アカウントAのプライベート ホストゾーンID $ VPC_ID=<vpc-id> # アカウントBの VPC ID $ REGION=ap-northeast-1 $ aws route53 list-vpc-association-authorizations \ --hosted-zone-id ${HOSTED_ZONE_ID}
一般向けサイト
ITエンジニア向けサイト
英語サイト
Portfolio
Copyright (c) 2023 クラウドのインフラ技術 All Rights Reserved.