Skip to content

Instantly share code, notes, and snippets.

@YoshihitoAso
Last active December 14, 2015 18:39
Show Gist options
  • Save YoshihitoAso/5131314 to your computer and use it in GitHub Desktop.
Save YoshihitoAso/5131314 to your computer and use it in GitHub Desktop.
[AWS][RDS]RDS Cli のインストール
$wget http://s3.amazonaws.com/rds-downloads/RDSCli.zip
$unzip RDSCli.zip
$export AWS_RDS_HOME=/home/ec2-user/RDSCli-1.13.002
$export PATH=$PATH:$AWS_RDS_HOME/bin
$export EC2_REGION=ap-northeast-1
$vi cred.txt
# Enter the AWS Keys without the < or >
# These can be found at http://aws.amazon.com under Account->Security Credentials
AWSAccessKeyId=***
AWSSecretKey=***
$export AWS_CREDENTIAL_FILE=/home/ec2-user/RDSCli-1.13.002/cred.txt
#examples
rds-describe-db-log-files --db-instance-identifier wordpress
rds-download-db-logfile --db-instance-identifier wordpress --log-file-name error/mysql-error-running.log
rds-watch-db-logfile --db-instance-identifier wordpress --log-file-name error/mysql-error-running.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment