aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.41k stars 346 forks source link

Amazon Q incorrectly validates AWS SAM template #5250

Open sliedig opened 3 days ago

sliedig commented 3 days ago

Problem

Q does not recognise that the Globals section exists in the template and incorrectly marks the function definitions as invalid.

Globals:
  Function:
    Runtime: dotnet8
    Timeout: 30
    MemorySize: 512
    Architectures:
      - x86_64
    Tracing: Active
    ....

image

Steps to reproduce the issue

Nothing is required to reproduce the error, Q automatically marks these resources as invalid.

Expected behavior

Do not mark the function as invalid.

System details (run AWS: About and/or Amazon Q: About)

OS: Darwin arm64 23.5.0 Visual Studio Code extension host: 1.90.2 Amazon Q: 1.11.0 node: 20.9.0 electron: 29.4.0