shalupov / idea-cloudformation

AWS CloudFormation plugin for IntelliJ-based IDEs (IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm, AppCode, Android Studio, DataGrip, CLion)
https://teamcity.jetbrains.com/viewType.html?buildTypeId=IdeaAwsCloudFormation_Master_Build&guest=1
Apache License 2.0
136 stars 27 forks source link

Add support for Globals #120

Closed winonone closed 6 years ago

winonone commented 6 years ago

Is it possible to support Global section for serverless transform? Like those mentioned in https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst

dgorohov commented 6 years ago

AWS made some changes to the serverless model as well several days ago: https://github.com/awslabs/serverless-application-model/releases/tag/1.4.0 As an example: Cors and EndpointConfiguration are not supported by the plugin:

  Api:
    Type: AWS::Serverless::Api
    Properties:
      StageName: !Ref Environment
      Cors: "'*'"
      EndpointConfiguration: REGIONAL
      DefinitionBody:
        'Fn::Transform':
          Name: 'AWS::Include'
          Parameters:
            Location: !Sub s3://${BucketName}/api/swagger.yaml