Copy files from one bucket to another
The first data operation of this tutorial will consist in transferring the files from one bucket located in one GCP project to another bucket located in a different GCP project.
📄 Create a JSON file
{ "$schema": "http://jsonschema.tailer.ai/schema/storage-to-storage-veditor", "configuration_type": "storage-to-storage", "configuration_id": "000099-tailer-demo-copy-files-YOUR-NAME", "environment": "DEV", "account": "000099", "version": "3", "activated": true, "archived": false, "filename_templates": [ { "filename_template": "stores-{{FD_DATE}}-{{FD_TIME}}.csv", "file_description": "Stores repository. The store listing is the file could evolve over time" }, { "filename_template": "products-{{FD_DATE}}-{{FD_TIME}}.csv", "file_description": "Products repository. The product listing in the file could evolve over time" }, { "filename_template": "sales_{{FD_BLOB_8}}-{{FD_DATE}}.csv", "file_description": "Daily Sales. There are many days in each files. And some days are repeated in different files" }, { "filename_template": "sales_{{FD_DATE}}.csv", "file_description": "Daily Sales. There are many days in each files. And some days are repeated in different files" } ], "source": { "type": "gcs", "gcp_project_id": "my_gcp_project", "gcs_source_bucket" : "my-source-bucket", "gcs_source_prefix" : "input-folder-YOUR-NAME", "archive_prefix": "archive-folder-YOUR-NAME", "gcp_credentials_secret": { "cipher_aes": "b42xxx", "tag": "5c8xxx", "ciphertext": "fd0xxx", "enc_session_key": "8f6xxx" } }, "destinations": [ { "type": "gcs", "gcs_destination_bucket": "my-destination-bucket", "gcs_destination_prefix": "tailer-demo-input-folder-YOUR-NAME", "gcp_credentials_secret": { "cipher_aes": "b42xxx", "tag": "5c8xxx", "ciphertext": "fd0xxx", "enc_session_key": "8f6xxx" } } ] }
▶️ Deploy a first data operation
✅ Check the data operation in Tailer Studio
🗳️ Check the result in GCS
🚀 Further steps
Last updated