shalupov/idea-cloudformation

reference to resource are not resolved inside metadata/cloudformationinit section

gchiesa opened this issue · 0 comments

It seems that inside a Metadata / CloudFormation::Init resource the ref functionality is not working properly. The IDE does not propose any suggestion or check for a valid existing resource.
Example of code:

{
  "AWS::CloudFormation::Init": {
    "config": {
      "files": {
        "file1": {
          "mode": "0600",
          "owner": "root",
          "group": "root",
          "content": {
            "Fn::Join": [
              "\n", [
                { "Fn::Sub": [ "account_id: ${a}", { "a": { "Ref": "AWS::AccountId" } } ] }
              ]
            ]
          }
        }
      }
    }
  }
}

in the code above the { "Ref": "AWS::AccountId" } is not either autocompleted or flagged invalid if a not existing resource is mentioned.

CloudFormationPlugin version: 0.5.41