AWS CloudFormation Concepts Intrinsic Functions: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:


{{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html Join]}}
{{External|[https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-join.html Join]}}
!Join [ <font color=teal>''delimiter''</font>, [ <font color=teal>''comma-delimited list of values''</font> ] ]


  !Join ['-', [ a, b, c ]]
  !Join ['-', [ a, b, c ]]

Revision as of 19:29, 13 March 2019

External

Intrinsic Function Reference

Internal

Ref

Ref

The intrinsic function Ref returns the value of the specified parameter or resource. When a parameter logical name is specified, it returns the value of the parameter. When a resource logical name is specified, it returns a value that can be typically used to refer to that resource, such as a physical ID.

Join

Join
!Join [ delimiter, [ comma-delimited list of values ] ]
!Join ['-', [ a, b, c ]]

returns "a:b:c"

Split

Split
!Split ['.', "www.example.com"]

returns ["www", "example", "com"].

Select

Select