728x90
반응형
aws vpc 종속성 확인
-
DependencyViolation: Network vpc-xxx has some mapped public address(es). Please unmap those public address(es) before detaching the gateway 에러Tips 2022. 12. 3. 19:40
VPC에 종속적으로 붙어있는 다른 네트워크 아이템이 있어 삭제되지 않는 문제이다. - Security Group - EIP - NAT Gateway - Subnet 등을 확인해야한다. AWS 공식문서를 확인하면 다음 방법을 통해 VPC의 종속성을 확인할 수 있다. 1. 쉘 스크립트 작성 (이름은 임의로 아무거나 해도 된다. 나는 check.sh로 했다) #!/bin/bash vpc="vpc-{에러메세지에 뜬 VPC#}" region="{리전 코드 e.g.ap-northeast-3}" aws ec2 describe-internet-gateways --region $region --filters 'Name=attachment.vpc-id,Values='$vpc | grep InternetGatewayId a..