Created
August 22, 2021 21:13
-
-
Save dsudduth/5fc8c2855570728636d43564553102dd to your computer and use it in GitHub Desktop.
Demonstrates how to generate a JSON document in PowerShell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $AMI = "ami-56666777788889999" | |
| $params = @{ | |
| parameters = @( | |
| @{ | |
| name = '/AMI/RHEL8_AMI' | |
| value = $AMI | |
| } | |
| ) | |
| } | |
| $json = $params | ConvertTo-Json | |
| Write-Host $json | |
| $json | Out-File 'demo.json' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment