Aws: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 11: Line 11:
  aws rds describe-events
  aws rds describe-events
  aws rds describe-events --duration 10080
  aws rds describe-events --duration 10080
  aws rds describe-events --duration 10080 --source-identifier admin-db-test-01 --source-type db-instance
  aws rds describe-events --duration 10080 --region=eu-west-1 --source-identifier admin-db-test-01 --source-type db-instance
 
=list logfiles=
=list logfiles=
  aws rds describe-db-log-files --region=eu-west-1 --db-instance-identifier admin
  aws rds describe-db-log-files --region=eu-west-1 --db-instance-identifier admin

Revision as of 08:04, 20 June 2022

amazon

firewall waf (web application firewall)

whoami

aws sts get-caller-identity

list databases

aws rds describe-db-instances

List databases short version

aws rds describe-db-instances --region=eu-west-1 --query 'DBInstances[*].[DBInstanceArn,Engine,DBInstanceIdentifier]'

list events

aws rds describe-events
aws rds describe-events --duration 10080
aws rds describe-events --duration 10080 --region=eu-west-1 --source-identifier admin-db-test-01 --source-type db-instance

list logfiles

aws rds describe-db-log-files --region=eu-west-1 --db-instance-identifier admin

view logfiles

aws rds download-db-log-file-portion --db-instance-identifier admin-db-test-01 --log-file-name error/mysql-error-running.log.2022-05-05.14 --output text

List files in s3

aws s3 ls