Modify template (Create new version) via AWS CLI #8005
-
Hello, I'm trying to Modify template (Create new version) from AWS CLI via Powershell with this code: aws ec2 create-launch-template-version --launch-template-id lt-3289dh298dh2389 --version-description WebVersion2 --source-version 1 --launch-template-data '{"ImageId":"ami-0293d939101d983ab"}' I receive this error: the code syntax was taken directly from AWS CLI create-launch-template-version page (image attached). does anyone knows what I can do to solve this issue? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found a related issue: #6035. As mentioned there this appears to be expected behavior and a limitation of Powershell. Can you try escaping the double quotes as documented here: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html#powershell |
Beta Was this translation helpful? Give feedback.
Found a related issue: #6035. As mentioned there this appears to be expected behavior and a limitation of Powershell. Can you try escaping the double quotes as documented here: https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html#powershell