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 platformDetailsRelationships
13 resources · 26 relationships·Click to select, expand fields to see properties.
Fields (38)
| Field | Type | Description |
|---|---|---|
architecturerequired | string | Architecture of the instance |
arnrequired | string | ARN for the instance |
detailedMonitoringrequired | string | Whether detailed monitoring is enabled |
deviceprivate | aws.ec2.instance.device | Amazon EC2 instance block device |
deviceMappingsrequired | []aws.ec2.instance.device | List of devices attached to the instance (such as EBS volume) |
ebsOptimizedrequired | int | Whether the instance has EBS optimization turned on |
enaSupportedrequired | int | Whether enhanced networking with ENA is enabled |
httpEndpointrequired | string | Status of the IMDS endpoint enabled on the instance |
httpTokensrequired | string | A value of "optional" denotes IMDSv1 server compatibility; "required" denotes IMDSv2 |
hypervisorrequired | string | Hypervisor type of the instance: ovm or xen |
iamInstanceProfile | aws.iam.instanceProfile | Instance profile of the instance |
image | aws.ec2.image | Image that was used for the instance |
instanceIdrequired | string | Instance ID for the instance |
instanceLifecyclerequired | string | Whether this is a Spot Instance or a Scheduled Instance: spot, scheduled, or capacity-block |
instanceStatus | dict | Status of the specified instance |
instanceTyperequired | string | Instance type, such as t2.micro |
keypair | aws.ec2.keypair | Key pair associated with the instance |
launchTimerequired | time | Launch time of the instance |
networkInterfaces | []aws.ec2.networkinterface | List of network interfaces for the instance |
patchState | dict | Patch state information about the instance |
platformDetailsrequired | string | Platform details |
privateDnsNamerequired | string | Private DNS name for the instance |
privateIprequired | string | Private IP address for the instance |
publicDnsNamerequired | string | Public DNS name for the instance |
publicIprequired | string | Public IP for instance |
regionrequired | string | Region where the instance exists |
rootDeviceNamerequired | string | Device name of the root device volume, such as /dev/sda1 |
rootDeviceTyperequired | string | Root device type used by the AMI: ebs or instance-store |
securityGroups | []aws.ec2.securitygroup | List of security groups (IDs) associated with the instance |
ssm | dict | Amazon Systems Manager information for the instance |
staterequired | string | State of the instance: pending, running, stopping, stopped, rebooting, or terminated |
stateReasonrequired | dict | Reason for the most recent state transition |
stateTransitionReasonrequired | string | Reason for the most recent state transition |
stateTransitionTimerequired | time | Time when the last state transition occurred |
tagsrequired | map[string]string | Tags on the instance |
tpmSupportrequired | string | TPM version supported. NitroTPM is enabled if this value is `2.0` |
vpc | aws.vpc | VPC associated with the instance |
vpcArnrequired | string | ARN of the VPC associated with the instance |