Created
December 4, 2025 14:59
-
-
Save rad9800/802cf8bfbe4ce365fd6cc09c7e1ebd7d 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="AKIAY7JFSFF4UMCXG7J7" | |
| 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