Skip to content

ConvertTo-SSM is a VS Code extension that allows you to convert PowerShell and/or Shell scripts to AWS SSM documents.

Notifications You must be signed in to change notification settings

rafaelrodrigues3092/convertto-ssm

Repository files navigation

Convert To AWS SSM

Convert Powershell and/or Shell scripts to AWS SSM documents.

VS Marketplace

https://marketplace.visualstudio.com/items?itemName=RafaelRodrigues.convertto-ssm

Features

This plugin is capable of generating both JSON and YAML AWS SSM Documents from PowerShell and/or Shell scripts. It is also capable of retrieving the script back from an SSM document. It does not support SSM documents with multiple steps.

Usage

  1. Open a PowerShell or Shell script of your choice
  2. Open the Command Palette (F1 or CMD/CTRL+Shift+P or "View" > "Command Palette...")
  3. Search for "ConvertTo-SSM", and two options will appear
    • "ConvertTo-SSM: Create JSON document"
    • "ConvertTo-SSM: Create YAML document"
    • "ConvertTo-SSM: Get script from AWS SSM document"
  4. Click desired conversion option

Configurations

  • EnableAutoCopyToClipboard

    • When enabled, the SSM document output is automatically copied to the clipboard
  • EnableCopyRunCommandOnly

    • When enabled alongside EnableAutoCopyToClipboard, it copies the 'RunCommand' section of the SSM command only (supported only on conversions from a script to SSM document)

Instructions

PowerShell To JSON SSM Documnet

PowerShell to Json

Shell script To JSON SSM Documnet

Shell to Json

PowerShell to YAML SSM document

PowerShell to Json

Shell script to YAML SSM document

Shell to Json

Known Issues

N/A

Release Notes

CHANGELOG

About

ConvertTo-SSM is a VS Code extension that allows you to convert PowerShell and/or Shell scripts to AWS SSM documents.

Resources

Stars

Watchers

Forks

Packages

No packages published