azure_loader

command module
v0.0.0-...-79817c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: AGPL-3.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Load data to Azure

Input

A tab-separated file with the following columns

  • bucket
  • key

The Key should be URL-encoded.

Data mapping

Since the Azure container names can't contain dots, the dots in the S3 bucket name are mapped to dashes (-) in the Azure container name.

The keys aren't manipulated.

Usage

First, set up AWS and Azure credentials. You can use for example az login and aws sso configure or aws configure. The loader should pick up the credentials from the environment.

⚠️ In the Azure storage account > Access Control (IAM) > Role assignments, you have to be assigned the role "Storage Blob Data Contributor". The Owner role is not enough!

az login
aws sso configure
export AWS_PROFILE=...

printf 'mybucket\tmyfile.txt\n' | go run main.go  -j 60 -azure-url https://$ACCOUNT_NAME.blob.core.windows.net/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址