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

azure validation #2011

Open
wants to merge 1 commit into
base: cQube-migration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions azure_container_config.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
# The container name cannot contain underscores, end with a dash, have consecutive periods, or use dashes adjacent to periods.
# The bucket name cannot be formatted as an IP address (198.51.100.24).

azure_input_container: container_name # azure input container name, to store cQube raw input data. ( Example: cqube-prod-input )
azure_output_container: container_name # azure output container name, to store the cQube processed output data ( Example: cqube-prod-output )
azure_emission_container: container_name # azure emission container name, to store emitted data files (temporary storage location till data files process completes) ( Example: cqube-prod-emission )
azure_account_name: azure_storage_name # azure account name for creation of azure container
azure_account_key: azure_account_key # Azure account key for creation of azure container
storage_account_sas_token: sas_token # Enter the Blob storage account sas token for authentication
azure_input_container: container_name # azure input container name, to store cQube raw input data. ( Example: cqube-prod-input )
azure_output_container: container_name # azure output container name, to store the cQube processed output data ( Example: cqube-prod-output )
azure_emission_container: container_name # azure emission container name, to store emitted data files (temporary storage location till data files process completes) ( Example: cqube-prod-emission )
azure_account_name: azure_storage_name # azure account name for creation of azure container
azure_account_key: azure_account_key # Azure account key for creation of azure container
azure_storage_connection_string: storage_connection_string # azure storage connection string for creation of azure container
storage_account_sas_token: sas_token # Enter the Blob storage account sas token for authentication

6 changes: 3 additions & 3 deletions azure_to_aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ src_type=$(cut -d "=" -f2 <<< "$str_typ")


if [[ $src_type = "azure" ]] && [[ $storage_type = "s3" ]]; then
sudo azcopy copy https://$azure_account_name.blob.core.windows.net/$azure_input_container/*$storage_account_sas_token /tmp/cqube_migration/azure_input --recursive
sudo azcopy cp "https://$azure_account_name.blob.core.windows.net/$azure_input_container/*$storage_account_sas_token" /tmp/cqube_migration/azure_input --recursive
fi

if [[ $src_type = "azure" ]] && [[ $storage_type = "s3" ]]; then
sudo azcopy copy https://$azure_account_name.blob.core.windows.net/$azure_output_container/*$storage_account_sas_token /tmp/cqube_migration/azure_output --recursive
sudo azcopy cp "https://$azure_account_name.blob.core.windows.net/$azure_output_container/*$storage_account_sas_token" /tmp/cqube_migration/azure_output --recursive
fi

if [[ $src_type = "azure" ]] && [[ $storage_type = "s3" ]]; then
sudo azcopy copy https://$azure_account_name.blob.core.windows.net/$azure_emission_container/*$storage_account_sas_token /tmp/cqube_migration/azure_emission --recursive
sudo azcopy cp "https://$azure_account_name.blob.core.windows.net/$azure_emission_container/*$storage_account_sas_token" /tmp/cqube_migration/azure_emission --recursive
fi


Expand Down