You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cfn-lint] I3042: ARN in Resource IngestionPipeline contains hardcoded Partition in ARN or incorrectly placed Pseudo Parameters
The regex for I3042 seems to be confused with the table_arn: part of the pipeline configuration as defined in Opensearch1. If I rename it to just table:, the warning goes away. This is regardless if the value of table_arn: is a full arn using ${AWS::Partition} or a variable reference as is the case in the reproduction template.
Expected behavior
I expect the template to be valid as there is no use of a hardcoded partition nor any use of a pseudo parameter afaict.
Reproduction template
---
AWSTemplateFormatVersion: 2010-09-09Parameters:
DynamoDBTableArn:
Description: "DynamoDB Table ARN"Type: StringEnvironmentName:
Type: StringAllowedValues:
- staging
- productionPipelineName:
Description: "Name of the ingestion pipeline"Type: StringPipelineMinUnits:
Description: Min Units for ingestion pipelineType: NumberPipelineMaxUnits:
Description: Max Units for ingestion pipelineType: NumberResources:
IngestionPipeline:
Type: AWS::OSIS::PipelineProperties:
PipelineName: !Sub ${PipelineName}MaxUnits: !Ref PipelineMaxUnitsMinUnits: !Ref PipelineMinUnitsPipelineConfigurationBody: !Sub| version: "2" dynamodb-pipeline: source: dynamodb: acknowledgments: true tables: - table_arn: ${DynamoDBTableArn} - export: s3_bucket: mybucket s3_prefix: ${EnvironmentName} stream: start_position: "LATEST" aws: region: us-east-1
CloudFormation Lint Version
cfn-lint 1.9.4
What operating system are you using?
macOS
Describe the bug
The template receives the following warning
The regex for I3042 seems to be confused with the
table_arn:
part of the pipeline configuration as defined in Opensearch1. If I rename it to justtable:
, the warning goes away. This is regardless if the value oftable_arn:
is a full arn using${AWS::Partition}
or a variable reference as is the case in the reproduction template.Expected behavior
I expect the template to be valid as there is no use of a hardcoded partition nor any use of a pseudo parameter afaict.
Reproduction template
Footnotes
https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/sources/dynamo-db/#usage ↩
The text was updated successfully, but these errors were encountered: