**Overview**

In AWS it is possible to trigger step functions through an API Gateway integration, see https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-api-gateway.html

Similar integrations already occur within localstack, however the step function URIs are notably missing. See lines 66-88 of https://github.com/localstack/localstack/blob/master/localstack/services/apigateway/apigateway_listener.py



┆Issue is synchronized with this [Jira Bug](https://localstack.atlassian.net/browse/LOC-107) by [Unito](https://www.unito.io/learn-more)

msg = ('API Gateway integration type "%s", method "%s", URI "%s" not yet implemented' %
           (integration['type'], method, integration.get('uri')))
    LOGGER.warning(msg)
    return make_error_response(msg, 404)
def get_lambda_event_request_context(method, path, data, headers, integration_uri=None, resource_id=None):
    _, stage, relative_path_w_query_params = get_api_id_stage_invocation_path(path)
    relative_path, query_string_params = extract_query_string_params(path=relative_path_w_query_params)
    source_ip = headers.get('X-Forwarded-For', ',').split(',')[-2].strip()
    integration_uri = integration_uri or ''
    account_id = integration_uri.split(':lambda:path')[-1].split(':function:')[0].split(':')[-1]
    request_context = {
        
        
        'path': '/' + stage + relative_path,
        'accountId': account_id,
        'resourceId': resource_id,
        'stage': stage,
        'identity': {
            'accountId': account_id,
            'sourceIp': source_ip,
            'userAgent': headers.get('User-Agent'),
        },
        'httpMethod': method,
        'protocol': 'HTTP/1.1',
        'requestTime': datetime.datetime.utcnow(),
        'requestTimeEpoch': int(time.time() * 1000),
    }
    return request_context
UPDATE_APIGATEWAY = ProxyListenerApiGateway()