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

[State] Feat: Added Remote backend option for S3, GCS and Azblob #10

Merged
merged 3 commits into from
Jan 17, 2021

Conversation

deven96
Copy link
Collaborator

@deven96 deven96 commented Jan 17, 2021

Part of fix for #4

@deven96 deven96 requested a review from MeNsaaH January 17, 2021 19:40
@MeNsaaH MeNsaaH changed the title Attempting remote backend addition State: Added AWS S3 remote backend option Jan 17, 2021
@MeNsaaH MeNsaaH changed the title State: Added AWS S3 remote backend option [State] Feat: Added AWS S3 remote backend option Jan 17, 2021
Copy link
Owner

@MeNsaaH MeNsaaH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a generic implementation for all cloud providers, correct? So, aws S3, gcs and Azure Blob Storage should work just fine yeah?

NICEEE

config/config.go Outdated Show resolved Hide resolved
state/backend.go Outdated
switch cfg.StateBackend.Type {
s := NewEmptyState()
switch {
case config.Contains(config.StateBackendTypes[1:], cfg.StateBackend.Type):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we reference the RemoteBackendTypes from here, instead of using indexes. It could get messy and difficult to debug

Copy link
Collaborator Author

@deven96 deven96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a generic implementation for all cloud providers, correct? So, aws S3, gcs and Azure Blob Storage should work just fine yeah?

NICEEE

Yeah the gocloud library handles storage consistency across cloud providers perfectly, we might like to do something similar for python

config/config.go Outdated Show resolved Hide resolved
@MeNsaaH MeNsaaH changed the title [State] Feat: Added AWS S3 remote backend option [State] Feat: Added Remote backend option for S3, GCS and Azblob Jan 17, 2021
@MeNsaaH MeNsaaH merged commit 0c3e161 into master Jan 17, 2021
@MeNsaaH MeNsaaH deleted the feature/remote-backend-persistance branch January 17, 2021 21:50
MeNsaaH pushed a commit that referenced this pull request Apr 5, 2022
MeNsaaH pushed a commit that referenced this pull request Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants