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

Fails to recognise resource types #139

Open cheunr02 opened 5 years ago

cheunr02 commented 5 years ago

I have WebStorm 2018.2.5 on Mac with 0.6.5 of plugin. For example -

{
  "AWSTemplateFormatVersion": "2010-09-09",
  "Parameters": {
    "LogGroup": {
      "Type": "String",
      "Description": "Name of AWS::Logs::LogGroup"
    }
  },
  "Resources": {
    "CloudwatchLogGroup": {
      "Type": "AWS::Logs::LogGroup",
      "Properties": {
        "LogGroupName": {
          "Ref": "LogGroup"
        },
        "RetentionInDays": 30
      }
    }
  }
}

WebStorm highlights "AWS::Logs::LogGroup" that is should be one of a long list of types which clearly it is correctly typed in. All other properties seem to be working - but anything inside the Resources field has the same issue. When i alt-enter and replace my loggroup with a "valid one" from the suggested list - it still warns.

Maybe I'm installing it incorrectly?

mab4058 commented 5 years ago

(version 0.6.5 in PyCharm 2018.2.4)

  MyLambdaFunction:
    Type: AWS::Lambda::Function
    Properties:
      ...

I'm having the same issue with the AWS::Lambda::Function resource.

Here is the message I'm seeing when inspecting the highlighted resource type: "Schema validation: Value should be one of: ["AWS::ApiGateway::Account"] less... (Ctrl+F1) Inspection info: Validates YAML file against a JSON Schema, if the schema is specified"