Publish project

Right-click your project in Solution Explorer, and select Publish to AWS Lambda... to launch the publishing wizard.

Publish project

Ensure the Account profile to use drop-down and Region drop-down are set to the profile and region you are using for today’s labs.

Under the Stack Name enter a stack name such as yourname-api-gateway-stack.

Then, click the New... under Amazon S3 Bucket and create a new bucket with a unique name like yourname-api-gateway.

Publish project

Now wait for the Serverless Application to be deployed, once it has finished the status should be CREATE_COMPLETE.

Publish project

Browse the AWS Serverless URL (append /api/values to the end of the URL) to call the default Get() method on the ValesController. Your browser should display the JSON for value1 and value2.

https://u8sjskar3c.execute-api.eu-west-1.amazonaws.com/Prod/api/values

Publish project

Congratulations! You have your ASP.NET Web API up and running behind Amazon API Gateway!