Skip to content

Fn::Size intrinsic template function #61

Closed
@josb

Description

@josb

Scope of request

AWS CloudFormation templates.

Expected behavior

Fn::Size should return the number of elements in a list (the result of Fn::Split, or a CommaDelimitedList parameter).

Test case recommendation

If you combine this with the Fn::Split function it will allow you to see how many items were entered when someone has a CommaDelimitedList parameter, which is helpful when it comes to Conditionals:
{ "Fn::Size" : { "Fn::Split" : [ "delimiter", "source string" ] } }

Links to existing API doc

https://www.kencochrane.net/2017/03/25/my-cloudformation-wishlist/

Category

  1. Other (IoT, Migration, Budgets...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestProposal for new features or requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions