Last active
June 6, 2017 14:32
-
-
Save tomcatzh/288029a8fc7f0731aa17d3ee1d801cb0 to your computer and use it in GitHub Desktop.
This file contains 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/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