empty metric_timestamp causes the iot topic rule to not be executed when using cloudwatch metrics as action #6354
Labels
bug
Addresses a defect in current functionality.
service/iot
Issues and PRs that pertain to the iot service.
Milestone
Community Note
Terraform Version
0.11.10, provider aws 1.29.0
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/MattBlack85/d0f0a72811cb661a6acdce7f29717778
Panic Output
None
Expected Behavior
If a rule is created that will put a metric into cloudwatch and the optional parameter metric_timestamp is not provided, the rule should execute correctly with the default timestamp assigned by AWS
Actual Behavior
When calling the AWS API an empty string is sent as
metric_timestamp
, this make AWS thinks that that empty string is the timestamp we want to use and the rule is not executed.If the rule is created manually on the console it works and if we get the details from the AWS API we got:
If I create it using terraform the API returns:
Steps to Reproduce
terraform apply
Important Factoids
None
References
The text was updated successfully, but these errors were encountered: