Skip to content
This repository has been archived by the owner on Dec 28, 2019. It is now read-only.

Fails to recognise resource types #139

Open
cheunr02 opened this issue Oct 20, 2018 · 1 comment
Open

Fails to recognise resource types #139

cheunr02 opened this issue Oct 20, 2018 · 1 comment

Comments

@cheunr02
Copy link

cheunr02 commented Oct 20, 2018

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
Copy link

mab4058 commented Oct 30, 2018

(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"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants