2回答
- 新しい順
- 投票が多い順
- コメントが多い順
1
Hello. Please see if this helps. 'MapPublicIpOnLaunch' in the Response when describe_subnets() is called.
MapPublicIpOnLaunch has a true/false value and indicates whether instances launched in this subnet receive a public IPv4 address.
回答済み 1年前
0
Hi, there is not a direct command that returns if your subnet is either private or public. You can use for instance the describe_subnets and get the subnet-id that the network firewall is using and the subnet-id that your instances are using and compare them. Another option can be: create a tag in your subnets where you identify subnets as private or public, and then with the same describe_subnets you can get tags and then know if these are private or public.
回答済み 1年前
関連するコンテンツ
- AWS公式更新しました 10ヶ月前