Last active
November 28, 2022 15:47
-
-
Save flavono123/5580a0804d73ce73d2c5c33df6b9273e to your computer and use it in GitHub Desktop.
Maximum Count of IPv4 Addresses by AWS EC2 Instance Type(for EKS VPC CNI)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ aws ec2 describe-instance-types | | |
| jq '.InstanceTypes[] | | |
| { | |
| "InstanceType": .InstanceType, | |
| "MaximumIpv4Address": (.NetworkInfo.MaximumNetworkInterfaces * .NetworkInfo.Ipv4AddressesPerInterface - 3) | |
| }' | | |
| jq -s 'sort_by(.MaximumIpv4Address)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment