Info

Sometimes you want a way to automate the OneDrive folder with an S3 folder.

There is a convenient script

https://github.com/TraumaCareAI/traumacare-utils/blob/main/scripts/sync_local_to_s3.sh

How to use

  1. Make sure you have a valid AWS session
# example
aws sso login --profile sally-traumacare-poweruser
  1. Update your OneDrive folder accordingly

  2. Modify the default values

    1. Right now, it is to sync CV mappings
    2. The default profile is based on my AWS profile.
  3. Run the script

    1. You can either clone the traumacare-utils repo
    2. You can just copy/paste the script as a .sh file locally
# assuming you cloned traumacaare-utils and you are in that folder
 ./scripts/sync_local_to_s3.sh

Customizing your source and destination

Note

The default is for CV mappings. Please update the script accordingly.

The default also uses my AWS profile. Please update with yours.

Sample Successful Run