high-leather-15669
02/24/2022, 8:07 AMautomation API
using a Azure Storage Account. I can do this over pulumi CLI, but haven't found any docs/examples to do this over the Automation API, could someone be so kind to point it for me? Thank you!crooked-pillow-11944
02/24/2022, 11:03 PMbackend
in the project settings
I use S3 and KMS to encrypt the state. Here's an example in Python: https://github.com/kjenney/prov/blob/main/prov/common.py#L65-L69azblob://
as your backend - replace s3://
in my examplehigh-leather-15669
02/25/2022, 4:08 PMstderr: error: unable to open bucket <azblob://foobar>: azureblob.OpenBucket: accountName is required
This is my code snippet:
....
backend_url = f"<azblob://foobar>"
project_settings=auto.ProjectSettings(
name=project_name,
runtime="python",
backend={"url": backend_url}
)
stack_settings=auto.StackSettings(
secrets_provider=secrets_provider)
workspace_opts = auto.LocalWorkspaceOptions(project_settings=project_settings,
secrets_provider=secrets_provider,
stack_settings={stack_name: stack_settings})
stack = auto.create_or_select_stack(stack_name=stack_name,
project_name=project_name,
program=pulumi_program,
opts=workspace_opts)
....
AZURE_STORAGE_KEY
, AZURE_STORAGE_ACCOUNT
using the automationAPI 😞crooked-pillow-11944
02/25/2022, 4:21 PMaws-vault
to manage my AWS session info but you should be able to either pass thru using the azure cli or just exporting them in your shellhigh-leather-15669
02/25/2022, 4:31 PMbackend_url = f"<azblob://foobar/{accountname}>"
Once again, Thanks a lot @crooked-pillow-11944 !miniature-leather-70472
03/03/2022, 10:03 AMhigh-leather-15669
03/03/2022, 10:05 AMminiature-leather-70472
03/03/2022, 10:07 AMhigh-leather-15669
03/03/2022, 10:09 AM