aws-scripting-guy / cform-VSCode

CloudFormation extension for Visual Studio Code
86 stars 36 forks source link

Add support for SAM cli templates #45

Open tim-white87 opened 4 years ago

tim-white87 commented 4 years ago

Hey all, Great plugin, really enjoy it. When I use SAM cli templates like:

DerpApi:
    Type: AWS::Serverless::Api
    Properties:
      StageName: dev
      Cors:
        AllowHeaders: "'Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization'"
        AllowOrigin: "'*'" # TODO dynamic
        AllowMethods: "'POST, GET, OPTIONS'"

the plugin throws errors since the resource is an "invalid" value. Here are the docs around it: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md

PatMyron commented 3 years ago

duplicate of https://github.com/aws-scripting-guy/cform-VSCode/issues/18