**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)

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={}):
    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):
    search_match = re.search(PATH_REGEX_USER_REQUEST, path)
    api_id = search_match.group(1)
    stage = search_match.group(2)
    relative_path_w_query_params = '/%s' % search_match.group(3)
    return api_id, stage, relative_path_w_query_params
def invoke_rest_api_from_request(method, path, data, headers, context={}):
    api_id, stage, relative_path_w_query_params = get_api_id_stage_invocation_path(path)
    try: