func addAllVPCNames(svc *ec2.Client, result map[string]string) map[string]string {
	resp, err := svc.DescribeVpcs(context.TODO(), &ec2.DescribeVpcsInput{})
	if err != nil {
		panic(err)
	}
	for _, vpc := range resp.Vpcs {
		result[*vpc.VpcId] = *vpc.VpcId
		if name := getNameFromTags(vpc.Tags); name != "" {
			result[*vpc.VpcId] = name
		}
	}
	return result
}
//addAllVPCNames returns the names of all vpcs in a map
addAllVPCNames returns the names of all vpcs in a map
// addAllVPCNames returns the names of all vpcs in a map
func addAllVPCNames(svc *ec2.Client, result map[string]string) map[string]string {
	resp, err := svc.DescribeVpcs(context.TODO(), &ec2.DescribeVpcsInput{})
	if err != nil {
		panic(err)
	}
	for _, vpc := range resp.Vpcs {
		result[*vpc.VpcId] = *vpc.VpcId
		if name := getNameFromTags(vpc.Tags); name != "" {
			result[*vpc.VpcId] = name
		}
	}
	return result
}
func addAllVPCNames ( svc * ec2 . Client , result map [ string ] string ) map [ string ] string { resp , err := svc . DescribeVpcs ( context . TODO ( ) , & ec2 . DescribeVpcsInput { } ) if err != nil { panic ( err ) } for _ , vpc := range resp . Vpcs { result [ * vpc . VpcId ] = * vpc . VpcId if name := getNameFromTags ( vpc . Tags ) ; name != " " { result [ * vpc . VpcId ] = name } } return result }
addAllVPCNames returns the names of all vpcs in a map
addAllVPCNames returns the names of all vpcs in a map