AWS

다운로드 184
업데이트 2024. 2. 21.

aws-ec2-route-tables

AWS EC2 라우팅 테이블을 조회합니다.

이 명령어는 EC2 DescribeRouteTables API를 사용합니다.

aws-ec2-route-tables [profile=PROFILE] [region=REGION]
profile=PROFILE
AWS 접속 프로파일
region=REGION
AWS 리전

AWS IAM 정책

이 명령어를 사용하려면 AWS IAM 정책에 아래 권한을 허용해야 합니다:

  • ec2:DescribeRouteTables

출력 필드

필드타입이름설명
aws_profile문자열접속 프로파일AWS 접속 프로파일 식별자
region문자열리전예: ap-northeast-2
route_table_id문자열Route Table ID
vpc_id문자열VPC ID
owner_id문자열소유자 ID
routes배열경로 목록각 배열 요소는 dst_cidr_block, dst_ipv6_cidr_block, dst_prefix_list_id, gateway_id, instance_id, instance_owner_id, nat_gateway_id, nic_id, origin, state, transit_gateway_id, vpc_peering_connection_id, egress_only_internet_gateway_id 속성 포함
associations배열연결 목록각 배열 요소는 main, route_table_assoc_id, route_table_id, subnet_id 속성 포함
propagating_vgws배열가상 사설 게이트웨이 (VGW) 전파 경로 목록각 배열 요소는 gateway_id 속성 포함
tags배열태그 목록각 배열 요소는 key, value 속성 포함