Amazon Relational Database Service
Command Line Interface Reference (API Version 2014-09-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

rds-add-tag-to-resource

Description

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).

Syntax

rds-add-tag-to-resource resourcename

--key value

--value value

[General Options]

Options

NameDescriptionRequired

resourcename

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).

Yes

--key

-k

The name of the tag to be added.

Yes

--value

-v

The value of the tag to be added.

No

Output

This command does not return any output.

Example

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.

PROMPT> rds-add-tag-to-resource arn:aws:rds:us-west-2:001234567890:db:mysql-db -k project -v trinity