Expand description
AWS EC2 SDK function wrappers
Structs§
- IpPermission
Describes the permissions for a security group rule.
- IpRange
Describes an IPv4 address range.
- Region
- The region to send requests to.
- User
IdGroup Pair Describes a security group and Amazon Web Services account ID pair.
Enums§
- Instance
Type - When writing a match expression against
InstanceType
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Volume
Type - When writing a match expression against
VolumeType
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature.
Functions§
- accept_
vpc_ peering_ connection - Accepts a VPC peering connection in the peer region
- add_
route - Adds a route to a route table for VPC peering
- assert_
arm64_ support - Enforces that all instance types are ARM64-based
- create_
and_ attach_ igw - Creates an Internet Gateway and attaches it to the specified VPC
- create_
ec2_ client - Creates an EC2 client for the specified AWS region
- create_
route_ table - Creates a route table for the VPC and sets up a default route to the Internet Gateway
- create_
security_ group_ binary - Creates a security group for binary instances with access from deployer, monitoring, and custom ports
- create_
security_ group_ monitoring - Creates a security group for the monitoring instance with access from the deployer IP
- create_
subnet - Creates a subnet within the VPC and associates it with the route table
- create_
vpc - Creates a VPC with the specified CIDR block and tag
- create_
vpc_ peering_ connection - Creates a VPC peering connection between two VPCs
- delete_
igw - Deletes an Internet Gateway
- delete_
key_ pair - Deletes an SSH key pair from the specified region
- delete_
route_ table - Deletes a route table
- delete_
security_ group - Deletes a security group
- delete_
subnet - Deletes a subnet
- delete_
vpc - Deletes a VPC
- delete_
vpc_ peering - Deletes a VPC peering connection
- detach_
igw - Detaches an Internet Gateway from a VPC
- find_
availability_ zone - Finds the availability zone that supports all required instance types
- find_
igws_ by_ tag - Finds Internet Gateways by deployer tag
- find_
instances_ by_ tag - Finds instances by deployer tag
- find_
latest_ ami - Finds the latest Ubuntu 24.04 ARM64 AMI in the region
- find_
route_ tables_ by_ tag - Finds route tables by deployer tag
- find_
security_ groups_ by_ tag - Finds security groups by deployer tag
- find_
subnets_ by_ tag - Finds subnets by deployer tag
- find_
vpc_ by_ igw - Finds the VPC ID attached to an Internet Gateway
- find_
vpc_ peering_ by_ tag - Finds VPC peering connections by deployer tag
- find_
vpcs_ by_ tag - Finds VPCs by deployer tag
- get_
private_ ip - Retrieves the private IP address of an instance
- import_
key_ pair - Imports an SSH public key into the specified region
- launch_
instances - Launches EC2 instances with specified configurations
- terminate_
instances - Terminates specified instances
- wait_
for_ enis_ deleted - Waits until all network interfaces associated with a security group are deleted
- wait_
for_ instances_ ready - wait_
for_ instances_ running - Waits for instances to reach the “running” state and returns their public IPs
- wait_
for_ instances_ terminated - Waits for instances to be terminated
- wait_
for_ vpc_ peering_ connection - Waits for a VPC peering connection to reach the “pending-acceptance” state
- wait_
for_ vpc_ peering_ deletion - Waits for a VPC peering connection to be deleted