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

Fn::Join not accepting a Ref to a CommaDelimitedList as an array argument #84

Closed grams closed 7 years ago

grams commented 7 years ago

Given this YAML template:

---
AWSTemplateFormatVersion: '2010-09-09'
Description: "Sample !Join and !Ref usage"
Parameters:
  aliasesParameter:
    Type: CommaDelimitedList
    Description: Comma separated list of domain names
Resources:
  MyDistribution:
    Type: AWS::CloudFront::Distribution
    Properties:
      DistributionConfig:
        Comment: !Join [ ", ", !Ref aliasesParameter ]

The expression !Join [ ", ", !Ref aliasesParameter ] is highlighted as an error "Join expects a string argument and an array argument". However, the reference to a CommaDelimitedList is, indeed, an array (of strings), AFAICT.

shalupov commented 7 years ago

Fixed in 0.5.26, thanks

grams commented 7 years ago

Works like a charm!

Thanks to you for the fix and for this very useful plugin!