The Amazon RDS Command Line Interface (RDS CLI) has been deprecated. Instead, use the AWS CLI for RDS. To learn how to download and use the AWS CLI, see
AWS Command Line Interface User Guide. For
RDS commands available in the AWS CLI, see
AWS CLI Reference for Amazon RDS.
The AWS CLI does not currently support the DownloadCompleteDBLogFile
REST API action. To download an entire log file at once, rather than in parts using the
download-db-log-file-portion command, use the last published RDS CLI and the
Adds a tag to an Amazon RDS resource. RDS resources can have up to 10 tags, but you can add only one tag at a time using the command line interface. To learn how to construct the ARN that references the DB instance to be tagged, see Constructing an RDS Amazon Resource Name (ARN).
The Amazon Resource Name (ARN) of the Amazon RDS resource that the tag will be added to. To learn how to construct the ARN that references the DB instance to be tagged, see Constructing an RDS Amazon Resource Name (ARN).
This parameter is the default parameter and can be passed as the first
value in the command and without a parameter name, for example:
The name of the tag to be added.
The value of the tag to be added.
This command does not return any output.
The following example adds a key named "project" with a value of "trinity" to a DB instance named mysql-db that is owned by customer 001234567890.
rds-add-tag-to-resource arn:aws:rds:us-west-2:001234567890:db:mysql-db -tk project -tv trinity