-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to create an Alarm on an INSIGHT_RULE_METRIC results in "Period must not be null" #7155
Comments
Similarly reproducible using
|
Can you confirm it's even possible to use Insights in an Alarm? I'm can't find documentation on it and the console doesn't seem to let me create one. |
The docs seem to indicate that it should be possible, but they only give examples for dashboard graphs. BTW, you shouldn't specify the top-level |
Ah hah, here's the rub:
There is an undocumented We need to:
This seems to be a bigger ticket that can't be addressed quickly. |
Created issue for CFN here: aws-cloudformation/cloudformation-coverage-roadmap#436 |
Any update on the timeline to support this? |
`MathExpression`s without submetrics will end up without a `period`, which is not allowed. Add a `period` field to the schema (it's not in the upstream schema yet), and render it out when submetrics are missing. Fixes #7155.
`MathExpression`s without submetrics (like for example, `INSIGHT_RULE_METRIC`) will end up without a `period`, which is not allowed. Add a `period` field to the schema (it's not in the upstream schema yet), and render it out when submetrics are missing. Fixes #7155.
I'm still getting this error. How can I track which release of CDK will contain this fix? |
@scubbo You may add Period property to MetricDataQueryProperty using addPropertyOverride
|
Action: create a stack containing a Log Insights Rule, and an Alarm that uses the Insight Rule as a source
Expected: successful creation
Actual: Stack creation fails, with an
ValidationError
when trying to create the Alarm, with message "Period must not be null"Reproduction Steps
cdk deploy
the code above to reproduce.Note that, according to the docs here,
Alarm.period
should not be used withMathExpression
s - I tried it both with and without, same error both times.Error Log
Environment
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: