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
I am trying to create availability SLO with awscc_applicationsignals_service_level_objective by defining 'total_request_count_metric' and 'bad_count_metric', but get an error that "Only one metric │ config must be populated".
Community Note
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
Resource "awscc_applicationsignals_service_level_objective" "availability-slo" is created, 'terraform apply' returned no errors.
Actual Behavior
awscc_applicationsignals_service_level_objective.availability-slo["GET"]: Creating...
╷
│ Error: AWS SDK Go Service Operation Incomplete
│
│ with awscc_applicationsignals_service_level_objective.availability-slo["GET"],
│ on for-report.tf line 46, in resource "awscc_applicationsignals_service_level_objective" "availability-slo":
│ 46: resource "awscc_applicationsignals_service_level_objective" "availability-slo" {
│
│ Waiting for Cloud Control API service CreateResource operation completion returned: waiter state transitioned to FAILED. StatusMessage: Invalid request
│ provided: AWS::ApplicationSignals::ServiceLevelObjective. Only one metric config must be populated (Service: ApplicationSignals, Status Code: 400, Request
│ ID: 55135437-957f-48e1-8647-68ca33997d54). ErrorCode: InvalidRequest
Steps to Reproduce
terraform apply
See the error in the terminal
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
"Only one metric config must be populated" Error message is thrown when both serviceConfig and advanced CloudWatchMetricConfig are populated. In your request, request_based_sli_metric sets both serviceSLI config (keyAttributes, operationName, metricType) and advanced CWconfig by specifying the CW metrics as below.
metric = {
namespace = "AWS/ApiGateway"
metric_name = "5XXError"
dimensions = [
{
name = "ApiName"
value = var.api_name
},
{
name = "Stage"
value = var.stage_name
},
{
name = "Method"
value = each.value
}
If you only set one SLI config, for example, remove
Description
I am trying to create availability SLO with awscc_applicationsignals_service_level_objective by defining 'total_request_count_metric' and 'bad_count_metric', but get an error that "Only one metric │ config must be populated".
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
awscc_applicationsignals_service_level_objective
Terraform Configuration Files
Debug Output
https://gist.github.com/anna-altruistiq/ae790e6c608452eebeef740344d058e3
Panic Output
Expected Behavior
Resource "awscc_applicationsignals_service_level_objective" "availability-slo" is created, 'terraform apply' returned no errors.
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: