sparse-intern-71089
02/19/2023, 5:24 PMbillowy-army-68599
How should I tell the automation SDK to please use a locally managed service backend for this stack?Run
pulumi login --local
before running the stackwhite-forest-65475
02/19/2023, 5:48 PMwhite-forest-65475
02/19/2023, 5:48 PMbillowy-army-68599
opts=LocalWorkspaceOptions(
secrets_provider=SECRET_PROVIDER,
work_dir=WORK_DIR,
project_settings=ProjectSettings(
name=PROJECT_NAME,
runtime='python',
backend=ProjectBackend(backend_url) # here
)))
billowy-army-68599
PULUMI_BACKEND_URL
white-forest-65475
02/19/2023, 5:56 PMwhite-forest-65475
02/19/2023, 6:00 PMf"file://{WORK_DIR}/{STACK_NAME}"
? would that be a reasonable approach to managing pulumi service backend state in a git repo? (I’m aware there are some problems with this approach when it comes to eg. merge conflicts - that’s an issue for another day)billowy-army-68599
white-forest-65475
02/19/2023, 6:02 PMbillowy-army-68599
white-forest-65475
02/19/2023, 6:04 PMwhite-forest-65475
02/19/2023, 6:04 PM