AWS

Download 48
Last updated Jun 6, 2022

aws-rds-log-files

Returns a list of DB log files for the RDS DB instance.

aws-rds-log-files [profile=PROFILE] region=REGION instance=INSTANCE [from=yyyyMMddHHmmss] [filename=FILENAME]
profile=PROFILE
The identifier of AWS connect profile
region=REGION
AWS region
instance=INSTANCE
Target RDS instance name
from=yyyyMMddHHmmss
Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
filename=FILENAME
Filter by log file name.

AWS IAM Policy

To use this command, you must allow the below permissions in your AWS IAM policy:

  • DescribeDBLogFiles

Output Fields

FieldTypeNameDescription
aws_profileStringConnect profileThe identifier of AWS connect profile
regionStringRegione.g. ap-northeast-2
instanceStringRDS instance
file_pathStringFile path
file_mtimeDateLast written time
file_sizeLongFile size