idea-cloudformation icon indicating copy to clipboard operation
idea-cloudformation copied to clipboard

reference to resource are not resolved inside metadata/cloudformationinit section

Open gchiesa opened this issue 7 years ago • 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

gchiesa avatar Nov 20 '17 12:11 gchiesa