Adds support for COPY TO/FROM Azure Blob Storage #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Supports following Azure Blob uri forms:
az://{container}/key
azure://{container}/key
https://{account}.blob.core.windows.net/{container}/key
Configuration
The simplest way to configure object storage is by creating the standard
~/.azure/config
file:$ cat ~/.azure/config [storage] account = devstoreaccount1 key = Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
Alternatively, you can use the following environment variables when starting postgres to configure the Azure Blob Storage client:
AZURE_STORAGE_ACCOUNT
: the storage account name of the Azure BlobAZURE_STORAGE_KEY
: the storage key of the Azure BlobAZURE_STORAGE_SAS_TOKEN
: the storage SAS token for the Azure BlobAZURE_CONFIG_FILE
: an alternative location for the config fileBonus
Additionally, PR supports following S3 uri forms:
s3://{bucket}/key
s3a://{bucket}/key
https://s3.amazonaws.com/{bucket}/key
https://{bucket}.s3.amazonaws.com/key
Closes #50