Skip to content

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

Merged
MeNsaaH merged 3 commits intomasterfrom
feature/remote-backend-persistance
Jan 17, 2021
Merged

[State] Feat: Added Remote backend option for S3, GCS and Azblob#10
MeNsaaH merged 3 commits intomasterfrom
feature/remote-backend-persistance

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

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

@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