iac_modules/infrastructure/config/__init__.py
2023-03-22 19:37:22 +08:00

14 lines
331 B
Python

from pulumi_command import local
from pulumi_command import remote
def get_env( name ):
env = local.Command(
"command",
create=f"printenv {name}"
)
return env.stdout
def local_run( command: str ):
command = local.Command("local_command", create=command )
return command.stdout