func cost(svc *awscf.CloudFormation, b []byte, params []*awscf.Parameter) { estInput := &awscf.EstimateTemplateCostInput{ Parameters: params, TemplateBody: aws.String(string(b)), } cost, err := svc.EstimateTemplateCost(estInput) if err != nil { log.Fatal(err) } fmt.Println(*cost.URL) }