Documentation ¶
Overview ¶
Package aws provides functions to interact with AWS services, specifically for managing and querying EC2 instances as part of the k8s-autoscaler-benchmarker application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEC2Instances ¶
GetEC2Instances retrieves a list of EC2 instances based on the specified filter name and value, with an exponential backoff mechanism in case of throttling.
func MonitorInstanceProvisioning ¶
func MonitorInstanceProvisioning(clientset kubernetes.Interface, ec2Svc *ec2.EC2, tagKey, tagValue, deploymentName, namespace string) (time.Duration, int, error)
MonitorInstanceProvisioning tracks the provisioning status of EC2 instances by filtering with tag key and value. It prompts the user for action if provisioning exceeds the predefined timeout. The function logs the provisioning status, including launched instances, until all required instances are in a 'Pending' state or a user intervention occurs.
Types ¶
This section is empty.