aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
764 stars 220 forks source link

Unable to deploy with SAM Template Parameters #3994

Open brettnem opened 11 months ago

brettnem commented 11 months ago

Describe the bug When a SAM template contains parameters, the deploy operation fails with the following error: Usage: sam sync [OPTIONS] Try 'sam sync -h' for help.

Error: Invalid value for '--parameter-overrides': "MQ_BROKER"="xxxx" is not in valid format. It must look something like 'ParameterKey=KeyPairName,ParameterValue=MyKey ParameterKey=InstanceType,ParameterValue=t1.micro' or 'KeyPairName=MyKey InstanceType=t1.micro'

Process finished with exit code 2

To reproduce

  1. Create SAM Template with Parameters
  2. Deploy, set the template parameters
  3. Notice deployment failure message

Expected behavior Expected deployment with template parameters

Screenshots

Sync_Serverless_Application__formerly_Deploy_

Your Environment

brettnem commented 11 months ago

In my testing, I have found that it seems that an underscore "_" in my parameter names is breaking deployments. Everything works fine if I switch to camelCase.

manodnyab commented 11 months ago

This is a related issue: https://github.com/aws/aws-sam-cli/issues/1937#issuecomment-619046221. Parameter override does not accept underscore