This project facilitates the migration of data from Azure Blob and File Storage to Amazon S3 using AWS DataSync. The primary motivation for this project stems from a customer requirement for an additional, secure backup system on a different cloud provider. This enhances data availability and security by ensuring redundancy and preventing any single point of failure.
- Create a Bucket for the terraform backend
- Copy
s3.tfbackend.example
and rename it tos3.tfbackend
- Add the backet name to
s3.tfbackend
- Add your prefered region
- Run the following:
terraform init -backend-config=s3.tfbackend
- Copy the content from
terraform.tfvars.examples
and rename it toterraform.tfvars
and set your variables. - Copy the
storage_accounts.tfvars.example
and rename it tostorage_accounts.tfvars
and populate your storage accounts to it. - Make sure the agent is up and running
- Deploy with:
terraform apply -var-file="terraform.tfvars" -var-file="storage_accounts.tfvars"
Check out this guide: https://repost.aws/knowledge-center/rotate-keys-customer-managed-kms