HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/ssm/update-document-default-version.rst
**To update the default version of a document**

The following ``update-document-default-version`` example updates the default version of a Systems Manager document. ::

    aws ssm update-document-default-version \
        --name "Example" \
        --document-version "2"

Output::

    {
        "Description": {
            "Name": "Example",
            "DefaultVersion": "2"
        }
    }

For more information, see `Writing SSM Document Content <https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-doc.html#writing-ssm-doc-content>`__ in the *AWS Systems Manager User Guide*.