Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Remote state store for Azure Blob Storage #1941

Closed
jjcollinge opened this issue Sep 14, 2018 · 2 comments
Closed

Proposal: Remote state store for Azure Blob Storage #1941

jjcollinge opened this issue Sep 14, 2018 · 2 comments
Assignees
Labels
good-first-issue Start here if you'd like to start contributing to Pulumi

Comments

@jjcollinge
Copy link

jjcollinge commented Sep 14, 2018

The current backend options (app.pulumi, local and enterprise) may not be suitable for all potential users. Some users will not require the value-added services available via the Pulumi backend and will be ok with basic blob storage. I took a quick look through the codebase and think the least intrusive way to extend the current backends would be to define new URL patterns for each provider i.e.
azure://storage-account-name. This can then be mapped to the storage account key as the access token in the credentials.json - this will be sufficient to leverage the azblob package to create a client and then we should be able to write a backend implementation for Azure Blob Storage. This pattern could then be used to add other providers such as aws://.... I have some time coming up at the start of October where I can try and implement an MVP for this if you agree this is a reasonable approach. Alternatively, if you have any existing thoughts or WIP that you could share then I might be able to pick that up instead.

EDIT: Another option - instead of writing a full backend for each blob storage, would be to extract a simple CRUD interface out of the existing filestate backend and allow switching in a reader/writer that can talk to different blob providers.

@lukehoban
Copy link
Member

@jjcollinge This sounds like a good approach - and the URL scheme design was intended to support this sort of extension. We don't have any existing WIP on this yet, so happy for you to submit a PR for this!

@lukehoban lukehoban added the good-first-issue Start here if you'd like to start contributing to Pulumi label Sep 18, 2018
@mikhailshilkov
Copy link
Member

It looks like this should be closed as implemented by #2455

> pulumi login --help
...
Additionally, you may leverage supported object storage backends from one of the cloud 
providers to manage the state independent of the service. For instance,
...
Azure Blob:
    $ pulumi login azblob://my-pulumi-state-bucket
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Start here if you'd like to start contributing to Pulumi
Projects
None yet
Development

No branches or pull requests

4 participants