I'm trying to run the following command to create a custom integration request body mapping template from the cli, but as the JSON output shows, it is removing values with a $ before them. How do I get around this?
Command:
aws apigateway update-integration --rest-api-id aoi84daah3 --resource-id jh5tps --http-method POST --patch-operations "op='add',path='/requestTemplates/application~1json',value='{"api_name" : "$context.resourcePath","http-method" :"$context.httpMethod"}'"
Output:
"requestTemplates": {
"application/json": "{api_name : .resourcePath,http-method :.httpMethod}"