Skip to content

Instantly share code, notes, and snippets.

@flavono123
Last active November 28, 2022 15:47
Show Gist options
  • Select an option

  • Save flavono123/5580a0804d73ce73d2c5c33df6b9273e to your computer and use it in GitHub Desktop.

Select an option

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)
$ 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