func GetAllSecurityGroups(svc *ec2.Client) []types.SecurityGroup {
	resp, err := svc.DescribeSecurityGroups(context.TODO(), &ec2.DescribeSecurityGroupsInput{})
	if err != nil {
		panic(err)
	}

	return resp.SecurityGroups
}
// GetAllSecurityGroups returns a list of all securitygroups in the region
GetAllSecurityGroups returns a list of all securitygroups in the region
// GetAllSecurityGroups returns a list of all securitygroups in the region
func GetAllSecurityGroups(svc *ec2.Client) []types.SecurityGroup {
	resp, err := svc.DescribeSecurityGroups(context.TODO(), &ec2.DescribeSecurityGroupsInput{})
	if err != nil {
		panic(err)
	}
	return resp.SecurityGroups
}
func GetAllSecurityGroups ( svc * ec2 . Client ) [ ] types . SecurityGroup { resp , err := svc . DescribeSecurityGroups ( context . TODO ( ) , & ec2 . DescribeSecurityGroupsInput { } ) if err != nil { panic ( err ) } return resp . SecurityGroups }
GetAllSecurityGroups returns a list of all securitygroups in the region
GetAllSecurityGroups returns a list of all securitygroups in the region