Skip to content

Instantly share code, notes, and snippets.

View peacengell's full-sized avatar

peacengell peacengell

View GitHub Profile
@peacengell
peacengell / ConvertTo-SSMDocument.ps1
Created January 7, 2021 10:28 — forked from danwagoner/ConvertTo-SSMDocument.ps1
[Convert PS Script to SSM Document] Automatically generates the document json from provided script and saves the document in the documents folder. #powershell #ssm #aws
# Automatically generates the document json from provided script and saves the document in the documents folder.
param (
[Parameter(Mandatory=$True)]
[string]$ScriptPath,
[Parameter(Mandatory=$True)]
[string]$Description
)
$Prefix = @"