Mondoo Docs

Amazon EC2 instance

aws.ec2.instance MQL resource for querying AWS infrastructure with cnquery and cnspec.

AWSPrivate Resource

Amazon EC2 instance

Min version: 5.15.0Defaults: instanceId region state instanceType architecture platformDetails

Relationships

Mini Map
AWS
13 resources · 26 relationshipsClick to select, expand fields to see properties.

Fields (38)

FieldTypeDescription
architecturerequired
stringArchitecture of the instance
arnrequired
stringARN for the instance
detailedMonitoringrequired
stringWhether detailed monitoring is enabled
deviceprivate
aws.ec2.instance.deviceAmazon EC2 instance block device
deviceMappingsrequired
[]aws.ec2.instance.deviceList of devices attached to the instance (such as EBS volume)
ebsOptimizedrequired
intWhether the instance has EBS optimization turned on
enaSupportedrequired
intWhether enhanced networking with ENA is enabled
httpEndpointrequired
stringStatus of the IMDS endpoint enabled on the instance
httpTokensrequired
stringA value of "optional" denotes IMDSv1 server compatibility; "required" denotes IMDSv2
hypervisorrequired
stringHypervisor type of the instance: ovm or xen
iamInstanceProfile
aws.iam.instanceProfileInstance profile of the instance
image
aws.ec2.imageImage that was used for the instance
instanceIdrequired
stringInstance ID for the instance
instanceLifecyclerequired
stringWhether this is a Spot Instance or a Scheduled Instance: spot, scheduled, or capacity-block
instanceStatus
dictStatus of the specified instance
instanceTyperequired
stringInstance type, such as t2.micro
keypair
aws.ec2.keypairKey pair associated with the instance
launchTimerequired
timeLaunch time of the instance
networkInterfaces
[]aws.ec2.networkinterfaceList of network interfaces for the instance
patchState
dictPatch state information about the instance
platformDetailsrequired
stringPlatform details
privateDnsNamerequired
stringPrivate DNS name for the instance
privateIprequired
stringPrivate IP address for the instance
publicDnsNamerequired
stringPublic DNS name for the instance
publicIprequired
stringPublic IP for instance
regionrequired
stringRegion where the instance exists
rootDeviceNamerequired
stringDevice name of the root device volume, such as /dev/sda1
rootDeviceTyperequired
stringRoot device type used by the AMI: ebs or instance-store
securityGroups
[]aws.ec2.securitygroupList of security groups (IDs) associated with the instance
ssm
dictAmazon Systems Manager information for the instance
staterequired
stringState of the instance: pending, running, stopping, stopped, rebooting, or terminated
stateReasonrequired
dictReason for the most recent state transition
stateTransitionReasonrequired
stringReason for the most recent state transition
stateTransitionTimerequired
timeTime when the last state transition occurred
tagsrequired
map[string]stringTags on the instance
tpmSupportrequired
stringTPM version supported. NitroTPM is enabled if this value is `2.0`
vpc
aws.vpcVPC associated with the instance
vpcArnrequired
stringARN of the VPC associated with the instance