EC2 Instance
An EC2 Instance is a virtual server in Amazon's Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure. It provides secure and resizable compute capacity in the cloud and is designed to make web-scale cloud computing easier for developers. For more detailed information, you can refer to the official AWS documentation.
Terraform 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
​
The EC2 Instance Status provides information about the operational status of an EC2 instance, indicating whether it is running, stopped, pending, or terminated. It helps in monitoring and managing the state of instances.
iam-instance-profile
​
The IAM Instance Profile is associated with an EC2 instance to manage permissions and roles, allowing the instance to securely interact with other AWS services and resources under the defined IAM roles.
ec2-capacity-reservation
​
An EC2 Capacity Reservation is related to an EC2 instance as it reserves capacity in a specific Availability Zone for a specified duration, ensuring that the instance can start even if there is a shortfall in capacity.
ec2-image
​
EC2 Images, or Amazon Machine Images (AMIs), are templates used to create an EC2 instance. They contain the necessary configuration, including the operating system and applications, to launch an instance.
ec2-key-pair
​
An EC2 Key Pair is associated with an EC2 instance to control SSH access for secure login. The key pair consists of a public key stored by AWS and a private key held by the user.
ec2-placement-group
​
EC2 Placement Groups are associated with EC2 instances to influence resource placement and optimise performance. They allow the placement of instances into specific infrastructure arrangements like clusters for low-latency and high-throughput performance.
ip
​
An IP address is assigned to an EC2 instance to enable network communication. It allows the instance to connect to the internet and other networked resources.
ec2-subnet
​
An EC2 Subnet is a sub-network within a Virtual Private Cloud (VPC) where EC2 instances are placed. It defines the IP address range that instances within the subnet can use.
ec2-vpc
​
An EC2 instance is deployed within an EC2 Virtual Private Cloud (VPC). The VPC isolates and controls network configurations for the instances, enhancing security and resource management.
dns
​
DNS associations influence how domain names are resolved to an EC2 instance's IP address, facilitating domain name mapping and instance reachability on the internet.
ec2-security-group
​
An EC2 Security Group acts as a virtual firewall for the EC2 instances, controlling inbound and outbound traffic. It defines the access rules and enhances security by restricting unauthorized access.
ec2-volume
​
EC2 Volumes are block storage devices attached to EC2 instances. They provide persistent storage for data and applications running on the instance, akin to a hard drive.