API error when using Terraform, backslash issues

Hey,

I’m trying to create the following:

resource “pagerduty_event_orchestration_router” “router” {
event_orchestration = pagerduty_event_orchestration.devops.id
set {
id = “start”
rule {
label = “Events relating to Ace”
condition {
expression = “event.summary matches part ‘ace\b’”
}
actions {
route_to = pagerduty_service.ace.id
}
}
}
catch_all {
actions {
route_to = “unrouted”
}
}
}

And getting the following error code when running terraform apply:

Error: PUT API call to https://api.pagerduty.com/event_orchestrations/6fd1056d-59f8-4e04-9d90-5d92b1cf301d/router failed 400 Bad Request. Code: 0, Errors: map[sets:[map[rules:[map[conditions:[map[expression:[unexpected word '‘ace’ on line 1 offset 27 unexpected symbols ‘’ on line 1 offset 31, unexpected word ‘’’ on line 1 offset 33]]]]

As you can see, i’m using \ but still.

Thanks

This was fixed by using \\ so instead of
expression = “event.summary matches part ‘ace\b’”
I had to setup:
expression = “event.summary matches part ‘ace\b’”
and in Terraform this was written like that:
expression = “event.summary matches part ‘ace\\b’”