Expand description
AWS EC2 SDK function wrappers
Structs§
- Ec2Client
- Client for Amazon Elastic Compute Cloud
- 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_
monitoring_ ingress - Adds monitoring IP ingress rules to a binary security group for Prometheus scraping
- add_
route - Adds a route to a route table for VPC peering
- create_
and_ attach_ igw - Creates an Internet Gateway and attaches it to the specified VPC
- create_
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 and custom ports
Note: monitoring IP rules are added separately via
add_monitoring_ingressafter monitoring instance launches - 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_
az_ instance_ support - Returns a map of AZ -> set of supported instance types for the given instance types.
- find_
igws_ by_ tag - Finds Internet Gateways by deployer tag
- find_
instances_ by_ tag - Finds instances by deployer tag
- 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, if any
- find_
vpc_ peering_ by_ tag - Finds VPC peering connections by deployer tag
- find_
vpcs_ by_ tag - Finds VPCs by deployer tag
- get_
enabled_ regions - Returns the set of regions that are enabled for the AWS account
- 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.
Filters subnets to those supporting the instance type, distributes across them starting at
start_idx, and falls back to other subnets on capacity errors. - 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 in the same order as the input instance IDs.
- 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