PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
ssm
**To create a document** This example creates a document in your account using the JSON format. Note that ``file://`` must be referenced followed by the path of the content file. For more information about writing a Systems Manager document, see `Creating Systems Manager Documents`_ in the *AWS Systems Manager User Guide*. .. _`Creating Systems Manager Documents`: https://docs.aws.amazon.com/systems-manager/latest/userguide/create-ssm-doc.html Command:: aws ssm create-document --content "file://RunShellScript.json" --name "RunShellScript" --document-type "Command" Output:: { "DocumentDescription": { "Status": "Creating", "Hash": "95cf32aa8c4c4e6f0eb81c4d0cc9a81aa5d209c2c67c703bdea7a233b5596eb "Name": "RunShellScript", "Parameters": [ { "Type": "StringList", "Name": "commands", "Description": "(Required) Specify a shell script or a command to run." } ], "DocumentType": "Command", "PlatformTypes": [ "Linux" ], "DocumentVersion": "1", "HashType": "Sha256", "CreatedDate": 1487871523.324, "Owner": "809632081692", "SchemaVersion": "2.0", "DefaultVersion": "1", "LatestVersion": "1", "Description": "Run a script" } } **To create a document using the YAML document format** This example creates a document in your account using the YAML format which targets the EC2 instance type. Note that ``file://`` must be referenced followed by the path of the content file. Command:: aws ssm create-document --content file://RunShellScript.yaml --name "RunShellScript" --document-type "Command" --document-format YAML --target-type "/AWS::EC2::Instance"
[+]
..
[-] list-compliance-items.rst
[edit]
[-] list-command-invocations.rst
[edit]
[-] describe-automation-step-executions.rst
[edit]
[-] update-service-setting.rst
[edit]
[-] get-parameters.rst
[edit]
[-] send-automation-signal.rst
[edit]
[-] get-service-setting.rst
[edit]
[-] describe-maintenance-windows.rst
[edit]
[-] create-maintenance-window.rst
[edit]
[-] put-parameter.rst
[edit]
[-] delete-maintenance-window.rst
[edit]
[-] get-maintenance-window-task.rst
[edit]
[-] describe-association-execution-targets.rst
[edit]
[-] delete-inventory.rst
[edit]
[-] describe-patch-baselines.rst
[edit]
[-] list-associations.rst
[edit]
[-] get-maintenance-window-execution-task-invocation.rst
[edit]
[-] get-parameters-by-path.rst
[edit]
[-] get-parameter-history.rst
[edit]
[-] start-session.rst
[edit]
[-] update-maintenance-window-target.rst
[edit]
[-] get-default-patch-baseline.rst
[edit]
[-] describe-sessions.rst
[edit]
[-] put-inventory.rst
[edit]
[-] list-document-versions.rst
[edit]
[-] describe-instance-patch-states-for-patch-group.rst
[edit]
[-] describe-effective-patches-for-patch-baseline.rst
[edit]
[-] describe-maintenance-window-execution-tasks.rst
[edit]
[-] describe-association.rst
[edit]
[-] describe-effective-instance-associations.rst
[edit]
[-] describe-document-permission.rst
[edit]
[-] delete-association.rst
[edit]
[-] update-patch-baseline.rst
[edit]
[-] describe-instance-associations-status.rst
[edit]
[-] list-resource-data-sync.rst
[edit]
[-] describe-maintenance-window-tasks.rst
[edit]
[-] describe-document.rst
[edit]
[-] register-target-with-maintenance-window.rst
[edit]
[-] remove-tags-from-resource.rst
[edit]
[-] get-inventory.rst
[edit]
[-] delete-document.rst
[edit]
[-] list-compliance-summaries.rst
[edit]
[-] resume-session.rst
[edit]
[-] put-compliance-items.rst
[edit]
[-] create-association-batch.rst
[edit]
[-] delete-parameters.rst
[edit]
[-] delete-activation.rst
[edit]
[-] stop-automation-execution.rst
[edit]
[-] describe-maintenance-window-targets.rst
[edit]
[-] create-association.rst
[edit]
[-] update-maintenance-window.rst
[edit]
[-] update-document-default-version.rst
[edit]
[-] delete-resource-data-sync.rst
[edit]
[-] list-inventory-entries.rst
[edit]
[-] describe-maintenance-windows-for-target.rst
[edit]
[-] describe-maintenance-window-schedule.rst
[edit]
[-] create-patch-baseline.rst
[edit]
[-] describe-patch-groups.rst
[edit]
[-] describe-parameters.rst
[edit]
[-] get-parameter.rst
[edit]
[-] get-inventory-schema.rst
[edit]
[-] start-automation-execution.rst
[edit]
[-] cancel-command.rst
[edit]
[-] list-tags-for-resource.rst
[edit]
[-] get-automation-execution.rst
[edit]
[-] get-patch-baseline-for-patch-group.rst
[edit]
[-] create-activation.rst
[edit]
[-] describe-maintenance-window-executions.rst
[edit]
[-] list-documents.rst
[edit]
[-] register-task-with-maintenance-window.rst
[edit]
[-] deregister-target-from-maintenance-window.rst
[edit]
[-] get-deployable-patch-snapshot-for-instance.rst
[edit]
[-] describe-association-executions.rst
[edit]
[-] describe-activations.rst
[edit]
[-] update-association.rst
[edit]
[-] terminate-session.rst
[edit]
[-] deregister-managed-instance.rst
[edit]
[-] create-resource-data-sync.rst
[edit]
[-] describe-instance-information.rst
[edit]
[-] update-managed-instance-role.rst
[edit]
[-] get-document.rst
[edit]
[-] list-resource-compliance-summaries.rst
[edit]
[-] register-default-patch-baseline.rst
[edit]
[-] describe-maintenance-window-execution-task-invocations.rst
[edit]
[-] deregister-patch-baseline-for-patch-group.rst
[edit]
[-] get-maintenance-window-execution-task.rst
[edit]
[-] register-patch-baseline-for-patch-group.rst
[edit]
[-] create-document.rst
[edit]
[-] update-document.rst
[edit]
[-] update-association-status.rst
[edit]
[-] list-association-versions.rst
[edit]
[-] list-commands.rst
[edit]
[-] update-maintenance-window-task.rst
[edit]
[-] describe-instance-patch-states.rst
[edit]
[-] describe-instance-patches.rst
[edit]
[-] label-parameter-version.rst
[edit]
[-] describe-inventory-deletions.rst
[edit]
[-] describe-automation-executions.rst
[edit]
[-] get-command-invocation.rst
[edit]
[-] get-maintenance-window-execution.rst
[edit]
[-] deregister-task-from-maintenance-window.rst
[edit]
[-] start-associations-once.rst
[edit]
[-] send-command.rst
[edit]
[-] get-patch-baseline.rst
[edit]
[-] add-tags-to-resource.rst
[edit]
[-] get-maintenance-window.rst
[edit]
[-] cancel-maintenance-window-execution.rst
[edit]
[-] modify-document-permission.rst
[edit]
[-] get-connection-status.rst
[edit]
[-] delete-patch-baseline.rst
[edit]
[-] delete-parameter.rst
[edit]
[-] describe-available-patches.rst
[edit]
[-] describe-patch-group-state.rst
[edit]