EC2 Instance
An Amazon EC2 instance is a resizable virtual server that runs in the AWS cloud and provides the compute layer of most workloads. Instances can be started, stopped, terminated, resized and placed into different networking or storage configurations, allowing you to run applications without purchasing physical hardware. For full details see the official AWS documentation: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Instances.html
Terrafrom Mappings:
aws_instance.id
aws_instance.arn
Supported Methodsβ
GET
: Get an EC2 instance by IDLIST
: List all EC2 instancesSEARCH
: Search EC2 instances by ARN
Possible Linksβ
ec2-instance-status
β
Represents the current state of the instance (pending, running, stopping, stopped, etc.), health checks, and scheduled events.
iam-instance-profile
β
An instance can be launched with an IAM instance profile, enabling the software running on it to assume a role and gain AWS permissions.
ec2-capacity-reservation
β
If the instance is launched into a specific capacity reservation, that reservation object is linked here to show the source of reserved compute capacity.
ec2-image
β
Every EC2 instance is created from an Amazon Machine Image (AMI). This link points to the AMI used at launch time.
ec2-key-pair
β
For Linux and some Windows instances a key pair is specified for SSH/RDP access; the referenced key pair is linked here.
ec2-placement-group
β
Instances can be placed in a placement group to influence network performance or availability. This link shows that relationship.
ip
β
Each instance receives one or more private and, optionally, public IP addresses. These addresses are surfaced as separate ip
resources linked to the instance.
ec2-subnet
β
The instanceβs primary network interface is attached to a specific subnet; that subnet is linked to reveal networking context.
ec2-vpc
β
The subnet (and thus the instance) resides inside a VPC. Linking the VPC shows the broader network boundary and associated routing.
dns
β
Public and private DNS names resolve to the instanceβs IP addresses; these DNS records are connected through this link.
ec2-security-group
β
One or more security groups control inbound and outbound traffic to the instance network interfaces. Those groups are linked here.
ec2-volume
β
EBS volumes attached to the instance for root and additional block storage are represented and linked by this type.