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

Fix Support for Globals #140

Closed asyba closed 5 years ago

asyba commented 5 years ago

Some tags are not supported like Runtime, CodeUri. I add them in Globals, but then in the FunctionsLambda is marked red like is missing the CodeUri, Runtime properties.

Documentation from SAM: https://github.com/awslabs/serverless-application-model/blob/a315215ac1d6275da962643572b821884e9c3b56/docs/globals.rst#lists-are-replaced

orende commented 5 years ago

Would be really nice to have this! Globals are an excellent way to reduce duplication in the CF files.

bikerp commented 5 years ago

I experience the same issue as @asyba. I would really appreciate to have it fixed. Thanks in advance

shalupov commented 5 years ago

@bikerp @asyba Please try version 0.6.9. If it still does not work, please attach a code snippet here

bikerp commented 5 years ago

@shalupov I have the latest version installed and the error still persist. Here is the template snippet:

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: SAM Hello World

Globals:
  Function:
    Timeout: 30
    Runtime: nodejs8.10

Resources:

  HelloWorldFunction:
    Type: AWS::Serverless::Function
    Properties:
      CodeUri: src/hello/
      Handler: app.handler
      Events:
        HelloWorld:
          Type: Api
          Properties:
            Path: /hello
            Method: post
asyba commented 5 years ago

same as @bikerp

shalupov commented 5 years ago

Fixed in 0.6.11