question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[E3002] CommaDelimitedList parameter value is not considered a list

See original GitHub issue

cfn-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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kddejongcommented, Aug 15, 2022

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 running cfn-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.

1reaction
kddejongcommented, Aug 11, 2022

Merged with #2320 released with v0.61.5

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found