Skip to main content

aws.ec2.instance

Supported Platform

  • aws

Description

AWS EC2 Instance

The aws.ec2.instance resource provides fields for assessing the configuration of EC2 instances within an account. For usage see aws.ec2 resource.

Fields

IDTYPEDESCRIPTION
arnstringarn for the instance
instanceIdstringinstance id for the instance
detailedMonitoringstringindicates whether detailed monitoring is enabled
regionstringregion where the instance exists
publicIpstringpublic ip for instance
ssmdictAmazon Systems Manager information for the instance
vpcaws.vpcvpc associated with the instance
httpTokensstringa value of optional for http tokens denotes imdsv1 server compatibility; required is imdsv2
patchStatedictpatch state information about the instance
statestringstate of the instance
deviceMappings[]aws.ec2.instance.deviceList of devices attached to the instance (e.g. ebs volume)
securityGroups[]aws.ec2.securitygroupList of security groups (ids) associated with the instance
publicDnsNamestringPublic dns name for the instance
instanceStatusdictThe status of the specified instance
stateReasondictReason for the most recent state transition
stateTransitionReasonstringReason for the most recent state transition
ebsOptimizedboolDenotes whether or not instance has ebs optimization turned on
instanceTypestringInstance type, e.g. t1.micro
tagsmap[string]stringTags on the instance
imageaws.ec2.imageImage that was used for the instance
launchTimetimeLaunch time of the instance