Difference between revisions of "MapPublicIpOnLaunch:"

From wikieduonline
Jump to navigation Jump to search
(Created page with " * {{aws ec2 subnet}}")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is <code>false</code>.
  
 +
* <code>aws ec2 describe-subnets --filters Name=vpc-id,Values=vpc-0987654321 --output table | egrep "[[MapPublicIpOnLaunch]]|Name|CidrBlock"</code>
  
 +
* <code>aws ec2 describe-subnets --filters Name=vpc-id,Values=vpc-0987654321 | egrep "[[MapPublicIpOnLaunch]]|[[DefaultForAz]]"</code>
  
 +
== Related ==
 +
* <code>[[AWS::EC2::Subnet]]</code>
 +
* <code>[[aws ec2 describe-vpcs]] | grep [[IsDefault]]</code>
 +
* <code>[[aws ec2 describe-subnets]] | grep DefaultForAz</code>
 +
* [[Datadog: EC2 subnets should not automatically assign public IP addresses]]
 +
 +
== See also ==
 
* {{aws ec2 subnet}}
 
* {{aws ec2 subnet}}
 +
* {{EIP}}
 +
 +
[[Category:AWS]]

Latest revision as of 12:02, 27 June 2024

Indicates whether instances launched in this subnet receive a public IPv4 address. The default value is false.

  • aws ec2 describe-subnets --filters Name=vpc-id,Values=vpc-0987654321 --output table | egrep "MapPublicIpOnLaunch|Name|CidrBlock"

Related[edit]

See also[edit]

Advertising: