# Type of request: 
This is a ...

[ x] bug report
[] feature request

# Detailed explaination

Currently when requesting a lambda through an API Gateway with the integration `AWS_PROXY` to a lambda, the request looks as so once it reaches the lambda:
```
{
  "resource": "/restapis/spxxrfc5pp/local/_user_request_/path/1",
  "path": "/path/1",
  "pathParameters": {
    "parameter "1"
  },
  "stageVariables": {
    "stage": "local"
  },
....
```
This is the wrong behaviour as AWS would return:

```
{
  "resource": "/path/{parameter}",
  "path": "/path/1",
  "pathParameters": {
    "parameter": "1"
  },
  "stageVariables": {
    "stage": "local"
  },
...
```
I think have found the offending line of code
https://github.com/localstack/localstack/blob/a9cefcc7cec6b3b079c701e420fcb61f891b9384/localstack/services/apigateway/apigateway_listener.py#L330

This should be `resource_path=resource_path`

Related to #3524


if not is_api_key_required:
        return True
    api_key = headers.get('X-API-Key')
    if not api_key:
        return False
    return validate_api_key(api_key, stage)
def update_content_length(response):
    if response and response.content:
        response.headers['Content-Length'] = str(len(response.content))
def apply_template(integration, req_res_type, data, path_params={}, query_params={}, headers={}):
    integration_type = integration.get('type') or integration.get('integrationType')
    if integration_type in ['HTTP', 'AWS']:
        
        template = integration.get('%sTemplates' % req_res_type, {}).get(APPLICATION_JSON)
        if template:
            context = {}
            context['body'] = data
            def _params(name=None):
                
                
                
                combined = {}
                combined.update(path_params or {})
                combined.update(query_params or {})
                combined.update(headers or {})
                return combined if not name else combined.get(name)
            context['params'] = _params
            data = aws_stack.render_velocity_template(template, context)
    return data
def get_api_id_stage_invocation_path(path, headers):