This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 198
Can't use parameters of type List<>
#282
Comments
@ndeloof did you solved that issue maybe? |
nope |
I need also to achieve this - seems that |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to define a template parameter as
List<AWS::EC2::Subnet::Id>
but I can't set directly
Subnets: cloudformation.Ref("SubnetIds")
as expected API type is[]string
whileRef
return a singlestring
.I tried using
[]string{ cloudformation.Split(",", cloudformation.Ref("SubnetIds"))
, this produces template:This seems valid to me, but fail to validate :
ValidationError: Template error: every Fn::Split object requires two parameters, (1) a string delimiter and (2) a string to be split or a function that returns a string to be split.
Did I miss something ? Is there a better approach to manage
List<>
references ?The text was updated successfully, but these errors were encountered: