@aws-cdk/aws-timestream: CfnScheduledQuery fails to deploy on empty table #22062
Labels
@aws-cdk/aws-timestream
Related to the @aws-cdk/aws-timestream package
bug
This issue is a bug.
needs-cfn
This issue is waiting on changes to CloudFormation before it can be addressed.
Describe the bug
My stack includes a
CfnScheduledQuery
construct that uses a data model mapping. When on-boarding new developers, the construct fails to deploy with the following error:This is because the source table is empty when it is initially deployed. This presents the annoying problem of having to first seed the source table with dummy items so that the scheduled query can be deployed.
Expected Behavior
The
CfnScheduledQuery
construct should deploy successfully and report errors later on. There could be an option to disable this validation on construct deployment.Current Behavior
The construct fails to deploy because the table is empty:
Reproduction Steps
Possible Solution
Allow developers to disable the query validation or ignore it when the table is empty.
Additional Information/Context
No response
CDK CLI Version
2.32.0
Framework Version
No response
Node.js Version
v18.9.0
OS
Linux mochi 5.19.7-zen2-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Mon, 05 Sep 2022 18:33:28 +0000 x86_64 GNU/Linux
Language
Typescript
Language Version
Version 4.7.3
Other information
No response
The text was updated successfully, but these errors were encountered: