Created
December 4, 2025 14:59
-
-
Save rad9800/fb3dcc424768a79a70b52d8ec95d7d09 to your computer and use it in GitHub Desktop.
Configuration backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| # AWS Configuration | |
| export AWS_ACCESS_KEY_ID="AKIAZ5XRDXHRVY6A5SW5" | |
| export AWS_SECRET_ACCESS_KEY="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" | |
| 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