This taskset can be used to check a fleet of EC2 instance and return the list of instances which are classified as overutilized.
Check For Overutilized Ec2 Instances
The TaskSet requires initialization to import necessary secrets, services, and user variables. The following variables should be set:
aws_access_key_id
: the service account's access key ID, used during theaws sts
call.aws_secret_access_key
: The service account's secret access key, used during theaws sts
call.aws_role_arn
: The full aws role ARN that will be assumed.aws_assume_role_name
: The name of the role to assume as part of theaws sts
assume role call.AWS_DEFAULT_REGION
: The AWS region to perform API requests in and for resources.AWS_SERVICE
: The remote aws service to use for requests.UTILIZATION_THRESHOLD
: used to determine the threshold at which point a EC2 instance is considered over-utilized.
This codebundle assumes a traditional service account authentication using the assume role functionality of aws sts
, and therefore a role with the correct access will be required so that it can be assumed by the service account for a temporary token.
- Add documentation
- Expand utilization checks