From 286dd4c339fe9c64e31eb14d8eb621fad205fa7a Mon Sep 17 00:00:00 2001 From: Marcin Rabenda Date: Mon, 11 Jul 2022 19:36:25 +0200 Subject: [PATCH] fix(intrinsics): split function --- cloudformation/intrinsics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudformation/intrinsics.go b/cloudformation/intrinsics.go index b4d0b46d81..e7ffbc41dd 100644 --- a/cloudformation/intrinsics.go +++ b/cloudformation/intrinsics.go @@ -193,7 +193,7 @@ func GetAttPtr(logicalName string, attribute string) *string { // Split splits a string into a list of string values so that you can select an element from the resulting string list, use the Fn::Split intrinsic function. Specify the location of splits with a delimiter, such as , (a comma). After you split a string, use the Fn::Select function to pick a specific element. func Split(delimiter, source interface{}) string { - return fmt.Sprintf(`{ "Fn::Split" : [ %q, %q ] }`, delimiter, source) + return encode(fmt.Sprintf(`{ "Fn::Split" : [ %q, %q ] }`, delimiter, source)) } func SplitPtr(delimiter, source interface{}) *[]string {