[E3002] CommaDelimitedList parameter value is not considered a list
See original GitHub issuecfn-lint version: 0.61.4
I am receiving the following error:
E3002: Property Subnets should be of type List or Parameter should be a list for resource LoadTestRule
This occurs when using a CloudFormation SSM Parameter with the type AWS::SSM::Parameter::Value<CommaDelimitedList>
, where the parameter value is assigned to a Property that expects a list of Strings. However, this error does not occur when the parameter’s type is changed to AWS::SSM::Parameter::Value<List<String>>
. According to the CloudFormation Parameters documentation, these two types appear to be interchangeable.
This issue persists after updating both cfn-lint
and the spec files.
This example produces the error on the Subnets
property. Changing the parameter’s type to AWS::SSM::Parameter::Value<List<String>>
does not.
LoadTestContainerSubnetParameter:
Type: AWS::SSM::Parameter::Value<CommaDelimitedList>
Description: location of SSM parameter value, containing list of public subnets
# ...
LoadTestRule:
Type: AWS::Events::Rule
Properties:
Description: Invoke nightly
Name: !Sub '${ApplicationName}-load-test'
ScheduleExpression: cron(0 3 ? * MON-FRI *)
State: ENABLED
Targets:
- Arn: !GetAtt LoadTestEcsCluster.Arn
RoleArn: !GetAtt LoadTestSchedulerRole.Arn
Id: !Sub '${ApplicationName}-load-test'
EcsParameters:
EnableExecuteCommand: false
LaunchType: FARGATE
NetworkConfiguration:
AwsVpcConfiguration:
AssignPublicIp: ENABLED
SecurityGroups:
- !GetAtt ClusterSecurityGroup.GroupId
Subnets: !Ref LoadTestContainerSubnetParameter
TaskCount: 1
TaskDefinitionArn: !Ref LoadTestTaskDefinition
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Pass CommaDelimitedList parameters to nested stacks ... - AWS
I want to pass CommaDelimitedList parameters to nested stacks in AWS CloudFormation. Short description. You can't pass values of type ...
Read more >Fn::Equals throwing error when CommaDelimitedList ...
I am writing a CF template to create an Elasticache Replication group. In that, I have a parameter called ...
Read more >cfn-lint Changelog - pyup.io
- Fixes an issue where Template.get_values would return `Ref: AWS::NoValue`. This will no longer be returned as it is considered to be a...
Read more >Optional comma-delimited list parameters in CloudFormation
Within a template condition, there's no direct way to test the presence or size of a CommaDelimitedList parameter. In order to create a ......
Read more >7 Awesome CloudFormation Hacks - Philipps Blog
This is useful when a value should be imported and the variable name should be ... Not only a CloudFormation parameter can be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
AWS:DynamoDB::Table
I’ve been trying to keep an eye on this one. It seems like some things are changing with the resource that has resulted in this. It was coming from the resource spec itself and how it was defined which is why you could see an issue if you were runningcfn-lint --update-specs
. I was about to patch the issue when I noticed that the.Json
property type no longer existed. I am continuing to monitor this.Merged with #2320 released with v0.61.5