Tagging Systems Manager documents
The topics in this section describe how to work with tags on Systems Manager documents (SSM documents).
Creating documents with tags
You can add tags to custom SSM documents at the time you create them.
For information, see the following topics:
Adding tags to existing documents
You can add tags to custom SSM documents that you own by using the Systems Manager console or the command line.
Topics
Adding tags to an existing SSM document (console)
Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/
. In the navigation pane, choose Documents.
-or-
If the AWS Systems Manager home page opens first, choose the menu icon (
) to open the navigation pane, and then choose Documents in the navigation pane.
-
Choose the Owned by me tab.
-
Choose the name of the document to add tags to, and then choose the Details tab.
-
In the Tags section, choose Edit, and then add one or more key-value tag pairs.
-
Choose Save.
Adding tags to an existing SSM document (command line)
To add tags to an existing SSM document (command line)
-
Using your preferred command line tool, run the following command to view the list of documents that you can tag.
Note the name of a document that you want to tag.
-
Run the following command to tag a document. Replace each
example resource placeholder
with your own information.If successful, the command has no output.
-
Run the following command to verify the document tags.
Removing tags from SSM documents
You can use the Systems Manager console or the command line to remove tags from SSM documents.
Removing tags from SSM documents (console)
Open the AWS Systems Manager console at https://console.aws.amazon.com/systems-manager/
. In the navigation pane, choose Documents.
-or-
If the AWS Systems Manager home page opens first, choose the menu icon (
) to open the navigation pane, and then choose Documents in the navigation pane.
-
Choose the Owned by me tab.
-
Choose the name of the document to remove tags from, and then choose the Details tab.
-
In the Tags section, choose Edit, and then choose Remove next to the tag pair you no longer need.
-
Choose Save.
Removing tags from SSM documents (command line)
-
Using your preferred command line tool, run the following command to list the documents in your account.
Note the name of a document from which you want to remove tags.
-
Run the following command to remove tags from a document. Replace each
example resource placeholder
with your own information.If successful, the command has no output.
-
Run the following command to verify the document tags.