silly-receptionist-99224
03/31/2022, 3:43 PM__main__.py
files in Python? So I can be able to split users, databases, roles, etc..
Currently using Pulumi for the first time and I am trying to manage some Snowflake resources using pulumi_snowflakeechoing-dinner-19531
03/31/2022, 3:44 PM__main__.py
files? Just use normal python modules like you would for any other python program.silly-receptionist-99224
03/31/2022, 4:28 PMechoing-dinner-19531
03/31/2022, 4:36 PM__main__.py
and iam.py
silly-receptionist-99224
03/31/2022, 4:44 PM__main__.py
from users import *
snowflake/user.py
from pulumi_snowflake import User
from pulumi import ComponentResource, ResourceOptions
class SnowflakeUserArgs:
def __init__(...
):
...
class SnowflakeUser(ComponentResource):
def __init__(
self, name, args: SnowflakeUserArgs, opts: ResourceOptions = None
):
super().__init__("iac:snowflake:user", name, {}, opts)
child_opts = ResourceOptions(parent=self)
...
self.register_outputs({})
and then in the users.py
from snowflake.user import SnowflakeUser, SnowflakeUserArgs
test_user = SnowflakeUser(...)
Any thoughts on this?echoing-dinner-19531
03/31/2022, 4:48 PMsilly-receptionist-99224
03/31/2022, 4:48 PMbland-lawyer-98859
04/04/2022, 12:58 PM__main__
files because I don't want to use the same Snowflake role for creating database, warehouses and for creating users/other roles. How would you do that ?echoing-dinner-19531
04/04/2022, 1:14 PM