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
Field | Type | Name | Description |
---|---|---|---|
aws_profile | String | Connect profile | The identifier of AWS connect profile |
region | String | Region | e.g. ap-northeast-2 |
instance | String | RDS instance | |
file_path | String | File path | |
file_mtime | Date | Last written time | |
file_size | Long | File size |