Issue #1529 isn't solving my problem here.
My CLI version is:
aws --version
aws-cli/1.11.57 Python/2.7.12 Darwin/15.5.0 botocore/1.5.20
on OSX Sierra
param definition
VPCSubnetIds:
Type: List<AWS::EC2::Subnet::Id>
Value of property SubnetIds must be of type List of String
the above is output from cfn events with any of the following:
ParameterKey=VPCSubnetIds,ParameterValue='subnet-f605a0bf\,subnet-ce3cbfa9'
ParameterKey=VPCSubnetIds,ParameterValue=\"subnet-f605a0bf,subnet-ce3cbfa9\"
Invalid type for parameter Parameters[2].ParameterValue, value: [u'subnet-f605a0bf', u'subnet-ce3cbfa9'], type:
the above is output from cli with any of the following:
ParameterKey=VPCSubnetIds,ParameterValue='subnet-f605a0bf,subnet-ce3cbfa9'
ParameterKey=VPCSubnetIds,ParameterValue=subnet-f605a0bf,subnet-ce3cbfa9
ParameterKey=VPCSubnetIds,ParameterValue='"subnet-f605a0bf","subnet-ce3cbfa9"'
ParameterKey=VPCSubnetIds,ParameterValue="'subnet-f605a0bf','subnet-ce3cbfa9'"
ParameterKey=VPCSubnetIds,ParameterValue='subnet-f605a0bf','subnet-ce3cbfa9'
'ParameterKey=VPCSubnetIds,ParameterValue="subnet-f605a0bf","subnet-ce3cbfa9"'
The value is being used here:
LambdaName:
Type: AWS::Lambda::Function
Properties:
VpcConfig:
SecurityGroupIds:
- !Ref VPCSecurityGroup
SubnetIds:
- !Ref VPCSubnetIds
This should pull a list of strings into the !Ref VPCSubnetIds
correct?
Is it broken? Or am I broken?
Could you provide debug logs? The second line should how exactly what got passed into the cli. Later down the line it will show what the request looks like if it gets to that point.
@brettswift you might have figured it out already, but what worked for me was to escape the comma. This also had me stumped. I tried a bunch of your examples, then escaped the comma and it worked. Try this:
ParameterKey=VPCSubnetIds,ParameterValue="subnet-f605a0bf\,subnet-ce3cbfa9"
Most helpful comment
@brettswift you might have figured it out already, but what worked for me was to escape the comma. This also had me stumped. I tried a bunch of your examples, then escaped the comma and it worked. Try this: