Difference between revisions of "MapPublicIpOnLaunch:"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
* <code>[[aws ec2 describe-vpcs]] | grep [[IsDefault]]</code> | * <code>[[aws ec2 describe-vpcs]] | grep [[IsDefault]]</code> | ||
* <code>[[aws ec2 describe-subnets]] | grep DefaultForAz</code> | * <code>[[aws ec2 describe-subnets]] | grep DefaultForAz</code> | ||
+ | * [[Datadog: EC2 subnets should not automatically assign public IP addresses]] | ||
== See also == | == See also == |
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"
aws ec2 describe-subnets --filters Name=vpc-id,Values=vpc-0987654321 | egrep "MapPublicIpOnLaunch|DefaultForAz"
Related[edit]
AWS::EC2::Subnet
aws ec2 describe-vpcs | grep IsDefault
aws ec2 describe-subnets | grep DefaultForAz
- Datadog: EC2 subnets should not automatically assign public IP addresses
See also[edit]
Advertising: