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
746 stars 214 forks source link

AWS Toolkit prevents referencin Runtime property of AWS::Serverless::Function #1708

Open vtuhtan opened 4 years ago

vtuhtan commented 4 years ago

Describe the bug AWS Toolkit does not allow using reference for Runtime property of AWS::Serverless::Function. Instead parameter selection popup window, I get AWS Toolkit: Invalid runtime LambdaRuntime defined in template C:/.../PycharmProjects/<project_name>/template.yaml

To reproduce

  1. Create a Parameter (e.g. LambdaRuntime, with allowed values: python3.6, python3.7 and python3.8
  2. Create a function and reference LambdaRuntime parameter for Runtime property
  3. Go to Deploy Serverless Application

Expected behavior SAM popup window with parameters shows up.

Screenshots image image

Your Environment

Additional context I am able to run

sam build 
sam deploy --guided

from CLI with referenced Runtime.

hunterwerlla commented 4 years ago

Currently that is not syntax we support, we require a specific runtime specified by a string. I think this would be reasonable to add support for.