AWS systems-manager documentation change
Summary
Added PowerShell V5 example for creating SSM documents with hash validation details
Security assessment
The example includes SHA256 hash validation in the output, which relates to document integrity verification - a security best practice. However, there's no indication this addresses a specific vulnerability.
Diff
diff --git a/systems-manager/latest/userguide/example_ssm_CreateDocument_section.md b/systems-manager/latest/userguide/example_ssm_CreateDocument_section.md index c00a01567..19ff6e6e3 100644 --- a//systems-manager/latest/userguide/example_ssm_CreateDocument_section.md +++ b//systems-manager/latest/userguide/example_ssm_CreateDocument_section.md @@ -229,0 +230,33 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example creates a document in your account. The document must be in JSON format. For more information about writing a configuration document, see Configuration Document in the SSM API Reference.** + + + New-SSMDocument -Content (Get-Content -Raw "c:\temp\RunShellScript.json") -Name "RunShellScript" -DocumentType "Command" + + +**Output:** + + + CreatedDate : 3/1/2017 1:21:33 AM + DefaultVersion : 1 + Description : Run an updated script + DocumentType : Command + DocumentVersion : 1 + Hash : 1d5ce820e999ff051eb4841ed887593daf77120fd76cae0d18a53cc42e4e22c1 + HashType : Sha256 + LatestVersion : 1 + Name : RunShellScript + Owner : 809632081692 + Parameters : {commands} + PlatformTypes : {Linux} + SchemaVersion : 2.0 + Sha1 : + Status : Creating + + * For API details, see [CreateDocument](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +