This message was deleted.
# general
s
This message was deleted.
f
Is there a particular provider you're working with? The answer is probably environment variables
f
Also it might be worth mentioning that we are instantiating the provider:
Copy code
snowflake_provider = snowflake.Provider(
    "snowflake_provider",
    account=settings.SNOWFLAKE_ACCOUNT,    
    role=settings.SNOWFLAKE_ROLE,
    username=settings.SNOWFLAKE_USER,
    password=settings.SNOWFLAKE_PASSWORD,
    region="",
)

snowflake.Database(
    "database",
    name="RAW",
    opts=pulumi.ResourceOptions(protect=True, provider=snowflake_provider),
)
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="",
)