- Published on
AWS - Cloud DevOps
- Authors
- Name
- Jackson Chen
How to create skeleton instance json file
https://docs.aws.amazon.com/quicksight/latest/developerguide/cli-skeletons.html
https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-skeleton.html
https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-help.html
# run command
aws ec2 run-instances --generate-cli-skeleton > inputFile.json
# Update / modify inputFile.json, then DRY RUN to verify
vi inputFile.json
"DryRun": true # do not create the ec2 instance, verify syntax only
# "DryRun": false <-- It will create the ec2 instance
# Create ec2 instance using the inputFile.json
aws ec2 run-instances --cli-input-json file://inputFile.json