Skip to content

Instantly share code, notes, and snippets.

@bugra-derre
Created September 18, 2013 15:57
Show Gist options
  • Save bugra-derre/6611323 to your computer and use it in GitHub Desktop.
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
#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