describe-transit-gateways get transit-gateway-ID using its description row

0

So, i wanted to get transit-gateway-id using description line (or maybe better to use tag?) that i have added to it when i was creating the transit-gateway. Now im trying to get transit-gateway-id using this command aws ec2 describe-transit-gateways.

But im stuck with using --filter, cant really understand if it is even possible. Thanks

1개 답변
1
수락된 답변

Upon review of the documentation, it did not appear to be possible to filter by description field or tag. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-transit-gateways.html

--filters (list)

One or more filters. The possible values are:

  • options.propagation-default-route-table-id - The ID of the default propagation route table.
  • options.amazon-side-asn - The private ASN for the Amazon side of a BGP session.
  • options.association-default-route-table-id - The ID of the default association route table.
  • options.auto-accept-shared-attachments - Indicates whether there is automatic acceptance of attachment requests (enable | disable ).
  • options.default-route-table-association - Indicates whether resource attachments are automatically associated with the default association route table (enable | disable ).
  • options.default-route-table-propagation - Indicates whether resource attachments automatically propagate routes to the default propagation route table (enable | disable ).
  • options.dns-support - Indicates whether DNS support is enabled (enable | disable ).
  • options.vpn-ecmp-support - Indicates whether Equal Cost Multipath Protocol support is enabled (enable | disable ).
  • owner-id - The ID of the Amazon Web Services account that owns the transit gateway. state - The state of the transit gateway (available | deleted | deleting | modifying | pending ).
  • transit-gateway-id - The ID of the transit gateway.
profile picture
답변함 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전
  • Welp, yeah, if it is the only possible values for filtering, then sad.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠