# Add API endpoint to invoke AWS Lambda function running docker

**URL:** https://forum.serverless.com/t/add-api-endpoint-to-invoke-aws-lambda-function-running-docker/16387
**Category:** Serverless Framework
**Created:** [December 10, 2021, 9:27am UTC](https://forum.serverless.com/t/add-api-endpoint-to-invoke-aws-lambda-function-running-docker/16387 "2021-12-10T09:27:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zander1983](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/zander1983/32/5828_2.png) [@Zander1983](https://forum.serverless.com/u/Zander1983)
#### Post date: [December 10, 2021, 9:27am UTC](https://forum.serverless.com/t/add-api-endpoint-to-invoke-aws-lambda-function-running-docker/16387/1 "2021-12-10T09:27:26Z")

</div>

Im using Serverless Framework to deploy a Docker image running R to an AWS Lambda.

```auto
service: r-lambda

provider:
  name: aws
  region: eu-west-1
  timeout: 60
  environment:
    stage: ${sls:stage}
    R_AWS_REGION: ${aws:region}
  ecr:
    images:
      r-lambda:
        path: ./

functions:
  r-lambda-hello:
    image:
      name: r-lambda
      command:
        - functions.hello

```

This works fine and I can log into AWS and invoke the lambda function. But I also want to invoke by doing a curl to it, so I added an “events” property to the functions section:

```auto
functions:
  r-lambda-hello:
    image:
      name: r-lambda
      command:
        - functions.hello
    events:
      - http: GET r-lambda-hello

```

Howevr, when I deploy with serverkless, it does not output the API endpoint. And when I go to API Gateway in AWS, I dont see any APIs here. What am I doing wrong?
