The solution is to pass the config option you want to define using an environment variable as a Pulumi output:
Copy code
snowflake_provider = snowflake.Provider(
"snowflake_provider",
account=pulumi.Output.from_input(None), # this will force the provider to look for this value in the environment
role=settings.SNOWFLAKE_ROLE,
username=settings.SNOWFLAKE_USER,
password=settings.SNOWFLAKE_PASSWORD,
region="",
)
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.