Closed graza-io closed 4 months ago
Hello @graza-io, I've been reviewing the aws_ec2_instance_type
table and would like to share my findings regarding this issue.
DescribeInstanceTypeOfferings
provides the available instance types per region, while DescribeInstanceTypes
details the characteristics of each instance type.DescribeInstanceTypes
API specifically returns the CurrentGeneration
property.aws ec2 describe-instance-types --query 'InstanceTypes[*].{InstanceType:InstanceType, CurrentGeneration:CurrentGeneration}' --region eu-north-1
, and the results matched exactly.t2.micro
instance type under the us-east-1
region is the current generation.
Did you find any deviation between the results returned by AWS CLI, AWS Console, and Steampipe?
Note: The current implementation in the main branch for the aws_ec2_instance_type
table returns data for the us-east-1
region. However, there's an open PR that updates this to retrieve results for all supported regions for an AWS account.
Thank you!
Ah, looks like current_generation
doesn't show if it's current as in latest
as I thought it would... (cc: @e-gineer for reference)
A quick check in eu-north-1 only shows d2
as not being in current_generation
but also equally doesn't even list the t2
options.
❯ aws ec2 describe-instance-types --query 'InstanceTypes[*].{InstanceType:InstanceType, CurrentGeneration:CurrentGeneration}' --region eu-north-1 | jq '[.[] | select(.InstanceType | startswith("t"))]'
[
{
"InstanceType": "t3.2xlarge",
"CurrentGeneration": true
},
{
"InstanceType": "t4g.nano",
"CurrentGeneration": true
},
{
"InstanceType": "t3.medium",
"CurrentGeneration": true
},
{
"InstanceType": "t4g.medium",
"CurrentGeneration": true
},
{
"InstanceType": "t4g.2xlarge",
"CurrentGeneration": true
},
{
"InstanceType": "t3.xlarge",
"CurrentGeneration": true
},
{
"InstanceType": "t3.large",
"CurrentGeneration": true
},
{
"InstanceType": "t3.micro",
"CurrentGeneration": true
},
{
"InstanceType": "t3.nano",
"CurrentGeneration": true
},
{
"InstanceType": "t4g.xlarge",
"CurrentGeneration": true
},
{
"InstanceType": "t4g.small",
"CurrentGeneration": true
},
{
"InstanceType": "t4g.micro",
"CurrentGeneration": true
},
{
"InstanceType": "t4g.large",
"CurrentGeneration": true
},
{
"InstanceType": "t3.small",
"CurrentGeneration": true
}
]
Thanks for digging into this @ParthaI - will close now as it appears the table is behaving as intended just not as desired ;)
t2
instance types are not the current generation, however they're reported as such: