Created
September 18, 2013 15:57
-
-
Save bugra-derre/6611323 to your computer and use it in GitHub Desktop.
Has to be called with parameters for the AWS access id and the AWS secret key. Call will create a static S3 bucket in s3://edu.kit.aifb.eorg.distbench.
A call may look like this:
sudo bash awscli_setup.sh AKJXA5JA gSGIBoFiIc
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
#Set up AWS CLI | |
sudo mkdir /home/ubuntu/.aws | |
#Write configuration file | |
cat > /home/ubuntu/.aws/config << EOL | |
[default] | |
aws_access_key_id = $1 | |
aws_secret_access_key = $2 | |
region = us-east-1 | |
EOL | |
#Make a bucket | |
sudo aws s3 mb s3://edu.kit.aifb.eorg.distbench --region us-east-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment