https://pulumi.com logo
#general
Title
# general
m

melodic-car-16900

02/25/2022, 4:46 PM
has anyone come across this error recently?
Copy code
pulumi:pulumi:Stack (mast-snowflake-non-pro):
    error: preview failed

  snowflake:index:RoleGrants (snowflake_user_reader_role_grant):
    error: Preview failed: refreshing urn:pulumi:non-pro::mast-snowflake::snowflake:index/roleGrants:RoleGrants::snowflake_user_reader_role_grant: 1 error occurred:
    	* 5 or 6 fields allowed
e

echoing-dinner-19531

02/25/2022, 4:51 PM
Can you use
pulumi stack export
to check what the
id
is for that resource currently?
m

melodic-car-16900

02/25/2022, 4:52 PM
e

echoing-dinner-19531

02/25/2022, 4:55 PM
Are you running
preview
with
--refresh
?
preview/up
m

melodic-car-16900

02/25/2022, 4:57 PM
it's caused by refreshing
I noticed it was causing failures in ci whilst running
pulumi up --refresh
and then locally I've been able to reproduce the error just by calling
pulumi refresh
pulumi up
works
but doesn't fix the issue
e

echoing-dinner-19531

02/25/2022, 4:58 PM
I think if you do an update without refresh it should just write out the new format IDs
m

melodic-car-16900

02/25/2022, 4:58 PM
good find, thank you
unfortunately this hasn't solved the issue
wait, perhaps it has, 1 moment
Hey, just to round this off, I ended up having to remove the resources and then recreate them to make it work
Thanks for your help
e

echoing-dinner-19531

02/26/2022, 3:55 PM
Ah that's annoying sorry things didn't just work, our engine doesn't expect resource IDs to change like this bit of an awkward breaking change from the Snowflake provider.
4 Views