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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.
Terraform CLI and Terraform AWS Cloud Control Provider Version
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
resource"awscc_applicationsignals_service_level_objective""example" {
name="example"description="example"goal={
attainment_goal =99.9
warning_threshold =99.0
interval = {
rolling_interval = {
duration =30
duration_unit ="DAY"
start_time =1738853749
}
}
}
sli={
comparison_operator ="GreaterThan"
metric_threshold =0
sli_metric = {
metric_data_queries = [
{
id ="event_count"
account_id = var.account_id
return_data =false# <----- This value doesn't seem to be respected, set to true in console
metric_stat = {
period =300# <----- This value doesn't seem to be respected, set to 1 minute in console
stat ="Sum"
metric = {
namespace ="AWS/Logs"
metric_name ="IncomingLogEvents"
dimensions = [
{
name ="LogGroupName"
value ="example-log-group"
}
]
}
}
},
{
id ="event_count_filled"
account_id = var.account_id
return_data =true# <----- Set to true as expected
expression ="SUM(FILL(METRICS('event_count'), 0))"
}
]
}
}
}
Debug Output
Panic Output
N/A
Expected Behavior
Meric period should be set to 5 minutes
event_count metric should be appear as unticked within the console (return_data = false)
Actual Behavior
Metric period is set to 1 minute
event_count metric is ticked within the console (return_data = true)
Steps to Reproduce
terraform apply
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
connor-philip-ci
changed the title
sli.sli_metric.metric_data_queries.metric_stat.period value does not appear to get used
awscc_applicationsignals_service_level_objective does not appear to respect set values
Feb 6, 2025
I played around with this a bit more and once I changed the order of the metric_data_queries and it seemed to have an effect on return_data being respected or not:
resource"awscc_applicationsignals_service_level_objective""example" {
name="example"description="example"goal={
attainment_goal =99.9
warning_threshold =99.0
interval = {
rolling_interval = {
duration =30
duration_unit ="DAY"
start_time =1738853749
}
}
}
sli={
comparison_operator ="GreaterThan"
metric_threshold =0
sli_metric = {
metric_data_queries = [
{
id ="event_count_filled"
account_id = var.account_id
return_data =true# <----- Set to true as expected
expression ="SUM(FILL(METRICS('event_count'), 0))"
},
{
id ="event_count"
account_id = var.account_id
return_data =false# <----- This value now __does__ seem to be respected, set to false in console
metric_stat = {
period =300# <----- This still isn't respected, set to 1 minute in console
stat ="Sum"
metric = {
namespace ="AWS/Logs"
metric_name ="IncomingLogEvents"
dimensions = [
{
name ="LogGroupName"
value ="example-log-group"
}
]
}
}
}
]
}
}
}
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
Panic Output
N/A
Expected Behavior
event_count
metric should be appear as unticked within the console (return_data = false
)Actual Behavior
event_count
metric is ticked within the console (return_data = true
)Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: