func GetAllEc2Instances(svc *ec2.Client) []types.Reservation {
	resp, err := svc.DescribeInstances(context.TODO(), &ec2.DescribeInstancesInput{})
	if err != nil {
		panic(err)
	}

	return resp.Reservations
}
// GetAllEc2Instances retrieves all EC2 instances
GetAllEc2Instances retrieves all EC2 instances
// GetAllEc2Instances retrieves all EC2 instances
func GetAllEc2Instances(svc *ec2.Client) []types.Reservation {
	resp, err := svc.DescribeInstances(context.TODO(), &ec2.DescribeInstancesInput{})
	if err != nil {
		panic(err)
	}
	return resp.Reservations
}
func GetAllEc2Instances ( svc * ec2 . Client ) [ ] types . Reservation { resp , err := svc . DescribeInstances ( context . TODO ( ) , & ec2 . DescribeInstancesInput { } ) if err != nil { panic ( err ) } return resp . Reservations }
GetAllEc2Instances retrieves all EC2 instances
GetAllEc2Instances retrieves all EC2 instances