Share an SSM document
You can share AWS Systems Manager (SSM) documents by using the Systems Manager console. You can also
share SSM documents programmatically by calling the
ModifyDocumentPermission
API operation using the AWS Command Line Interface (AWS CLI),
AWS Tools for Windows PowerShell, or the AWS SDK. Before you share a document, get the AWS account IDs
of the people with whom you want to share. You will specify these account IDs when
you share the document.
Share a document (console)
Share a document
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.
-
In the documents list, choose the document you want to share, and then choose View details. On the Permissions tab, verify that you're the document owner. Only a document owner can share a document.
-
Choose Edit.
-
To share the command publicly, choose Public and then choose Save. To share the command privately, choose Private, enter the AWS account ID, choose Add permission, and then choose Save.
Share a document (command line)
The following procedure requires that you specify an AWS Region for your command line session.
-
Open the AWS CLI or AWS Tools for Windows PowerShell on your local computer and run the following command to specify your credentials.
In the following command, replace
region
with your own information. For a list of supportedregion
values, see the Region column in Systems Manager service endpoints in the Amazon Web Services General Reference. -
Use the following command to list all of the SSM documents that are available for you. The list includes documents that you created and documents that were shared with you.
-
Use the following command to get a specific document.
-
Use the following command to get a description of the document.
-
Use the following command to view the permissions for the document.
-
Use the following command to modify the permissions for the document and share it. You must be the owner of the document to edit the permissions. This command privately shares the document with a specific individual, based on that person's AWS account ID.
-
Use the following command to share a document publicly.