Skip to content

Instantly share code, notes, and snippets.

@tomcatzh
Last active June 6, 2017 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomcatzh/288029a8fc7f0731aa17d3ee1d801cb0 to your computer and use it in GitHub Desktop.
Save tomcatzh/288029a8fc7f0731aa17d3ee1d801cb0 to your computer and use it in GitHub Desktop.
#!/bin/sh
yum update -y
yum --enablerepo=epel install jq bash-completion -y
cat <<EOT >> /etc/profile.d/aws-cli.sh
if [ $SHELL = "/bin/bash" ]; then
complete -C '/usr/bin/aws_completer' aws
fi
export AWS_DEFAULT_REGION=`curl -s http://169.254.169.254/latest/dynamic/instance-identity/document | jq .region -r`
EOT
ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment