Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Fn::Split and Fn::Sub combination false positive #221

Closed
romaninsh opened this issue Jan 22, 2019 · 1 comment
Closed

Fn::Split and Fn::Sub combination false positive #221

romaninsh opened this issue Jan 22, 2019 · 1 comment

Comments

@romaninsh
Copy link

Resource: Resources > B3AdminIdentityPool > Properties > IdentityPoolName
Message: Fn::Split does not support function 'Fn::Sub' here
Documentation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-split.html

code:

  B3AdminIdentityPool:
    Type: AWS::Cognito::IdentityPool
    Properties:
      IdentityPoolName: 
         Fn::Join: 
          - "_"
          - Fn::Split: 
            - "-"
            - !Sub ${Infra}-b3-admin

valid syntax replacing "-" with "_" in a string.

@martysweet
Copy link
Owner

martysweet commented Jan 25, 2019

Thanks for the issue, Fn::Sub needs to be added to the following list.

"Fn::Split": {"supportedFunctions": ["Fn::Base64", "Fn::FindInMap", "Fn::GetAtt", "Fn::If", "Fn::Join", "Fn::Select", "Fn::ImportValue", "Ref"]},

martysweet added a commit that referenced this issue Feb 27, 2019
@martysweet martysweet added this to the v1.9.6 milestone Feb 27, 2019
martysweet added a commit that referenced this issue Feb 27, 2019
* fix issue #221

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

No branches or pull requests

2 participants