aws

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 10 Imported by: 0

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

func GetEC2Instances(ec2Svc *ec2.EC2, filterName, filterValue string) ([]*ec2.Instance, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL