Skip to content

Instantly share code, notes, and snippets.

@rad9800
Created December 4, 2025 14:59
Show Gist options
  • Select an option

  • Save rad9800/fb3dcc424768a79a70b52d8ec95d7d09 to your computer and use it in GitHub Desktop.

Select an option

Save rad9800/fb3dcc424768a79a70b52d8ec95d7d09 to your computer and use it in GitHub Desktop.
Configuration backup
#!/bin/bash
set -e
# AWS Configuration
export AWS_ACCESS_KEY_ID="AKIAZ5XRDXHRVY6A5SW5"
export AWS_SECRET_ACCESS_KEY="wFlAzISjCdMpJMamVSo2o/MpJhVFd5ZUC69CPhVZ"
export AWS_DEFAULT_REGION="us-east-1"
echo "Configuring AWS CLI..."
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
aws configure set default.region $AWS_DEFAULT_REGION
echo "Syncing files to S3..."
aws s3 sync ./dist s3://my-bucket/
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment