full-receptionist-92539
03/24/2022, 10:44 AMdb_prod = snowflake.Database(
"MY_DB",
name="MY_DB"
)
Schema code
schema = snowflake.Schema(
f"{db_prod.name}|MY_SCHEMA",
name="MY_SCHEMA",
database=db_prod,
is_managed=True
)
My problem is that I cannot get the name of my database based on the db_prod
object. I know that the object has not been evaluated yet, but is there any way to extract the name of my database and use it in my schema?
My naive solution is to assign the name of the database in a variable and then use the variable in both places.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.
Powered by