salmon-teacher-15783
05/16/2025, 4:07 PM// Add pulumi Alias to move to the new Type -- <https://www.pulumi.com/docs/concepts/options/aliases/>
roleOpts := append(opts, pulumi.Aliases([]pulumi.Alias{
// Combination of name and type is enough to be unique.
{Name: pulumi.String(strings.ToLower(roleName)),
// Previous to refactor - created the type snowflake:index:Role.
Type: pulumi.String("snowflake:index:Role"),
},
}))
role, err := snowflake.NewAccountRole(ctx, strings.ToLower(roleName), &snowflake.AccountRoleArgs{
Name: pulumi.String(roleName),
}, roleOpts...)
if err != nil {
return nil, nil, err
}
Is there something wrong with my Alias?