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

Validation fails for AWS SAM templates if file is named cloudformation.yaml #138

Closed matsev closed 5 years ago

matsev commented 5 years ago

Most times, the CloudFormation plugins works fine when configuring an AWS SAM template, e.g.

AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31

Resources:

  TestLambda:
    Type: AWS::Serverless::Function
    Properties:
      CodeUri: .
      Handler: index.handler
      Runtime: nodejs8.10

However, using the very same template in a file named cloudformation.yaml results in validation errors, see screenshots below:

screen shot 2018-10-02 at 14 03 32

and

screen shot 2018-10-02 at 14 04 11


IntelliJ IDEA 2018.2.4 (Ultimate Edition) Build #IU-182.4505.22, built on September 18, 2018

AWS CloudFormation plugin version 0.5.69

shalupov commented 5 years ago

fixed in 0.6.5