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
Terraform CLI and Terraform AWS Provider Version
Terraform v0.13.5
- provider registry.terraform.io/hashicorp/aws v3.21.0
- provider registry.terraform.io/hashicorp/random v3.0.0
Affected Resource(s)
aws_appmesh_route
Terraform Configuration Files
resource "aws_appmesh_route" "grpc" {
name = "${var.service_name}-grpc-route"
mesh_name = var.app_mesh_name
virtual_router_name = aws_appmesh_virtual_router.main.name
spec {
grpc_route {
action {
weighted_target {
virtual_node = aws_appmesh_virtual_node.grpc.name
weight = 100
}
}
}
}
}
Expected Behavior
Apply without errors.
Actual Behavior
Error: Required attribute is not set. (match attribute for grpc_route block)
References
In AWS docs - https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html
Additional configuration for grpc_route -> match block is not required, but it is required in Terraform.
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.13.5
Affected Resource(s)
aws_appmesh_route
Terraform Configuration Files
resource "aws_appmesh_route" "grpc" {
name = "${var.service_name}-grpc-route"
mesh_name = var.app_mesh_name
virtual_router_name = aws_appmesh_virtual_router.main.name
spec {
grpc_route {
action {
weighted_target {
virtual_node = aws_appmesh_virtual_node.grpc.name
weight = 100
}
}
}
}
}
Expected Behavior
Apply without errors.
Actual Behavior
Error: Required attribute is not set. (match attribute for grpc_route block)
References
In AWS docs - https://docs.aws.amazon.com/app-mesh/latest/userguide/routes.html
Additional configuration for grpc_route -> match block is not required, but it is required in Terraform.