{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • General
    • Edge/API Management
    • Developer Portal
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Analytics
    • Events
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
5

New AWS Lambda + Apigee Sample code  

  • Export to PDF
alan@apigee.com created · Mar 15, 2016 at 10:00 PM · 1.8k Views · birute@google.com edited · Mar 15, 2016 at 10:58 PM

Hi Team,

@Nigel posted demo code showing Apigee proxy AWS Lambda calls. Thank you to Laurence from enkidootech.com to confirm that it works.

https://github.com/apigee/a127-lambda-petstore-sample

thub.nodes.view.add-new-comment
edgeawssampleslambda
Add comment Show 8
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Alan Williams · Apr 28, 2016 at 10:09 PM 0
Link

Thanks for sharing this. I took that sample and tweaked it sightly for my use case, deployed it to Edge Cloud and when I make a call to the API (curl -i) for some reason the output is the full swagger doc. Any idea why that's happening?

avatar image alan@apigee.com ♦ Alan Williams · Apr 28, 2016 at 10:11 PM 0
Link

Can you post the full curl command ?

avatar image Alan Williams alan@apigee.com ♦ · Apr 29, 2016 at 12:49 AM 0
Link

curl -i https://.apigee.net/v1/ >

and the output is the full swagger doc in json format.

Show more comments
avatar image Alan Williams · Jun 06, 2016 at 10:50 PM 0
Link

@Nigel Walters have you gotten this to work without API Gateway in the path? I.e. Apigee -> Lambda?

avatar image Nigel Walters ♦ Alan Williams · Jun 07, 2016 at 05:48 AM 0
Link

Hi Alan, yes, we have that working. Within the a127 lambda petstore sample github project you can find an example of Apigee calling AWS Lambda directly here: https://github.com/apigee/a127-lambda-petstore-sample/tree/master/a127_proxy_to_lambda

Please let me know if you have any queries around it.

avatar image Alan Williams Nigel Walters ♦ · Jun 11, 2016 at 08:20 PM 0
Link

Thanks @Nigel Walters that's been helpful. Do you know of a way to manage custom http status codes from Lambda within Swagger? As you know Lambda always returns a status 200 but the functionality of the function may need to return a message indicative of status that's not "OK" so is there a way to do this with just Swagger + Lambda? I know API Gateway can do it, but if possible I'd like to eliminate the extra middle man.

Show more comments

Article

Contributors

avatar image avatar image
Unfollow

Follow this article

28 People are following this .

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Navigation

New AWS Lambda + Apigee Sample code

Related Articles

StreetCarts: Implementing authorization across Edge and API BaaS

StreetCarts: Registering and authenticating new users with Edge and API BaaS

StreetCarts: Updating API BaaS permissions at runtime

StreetCarts: Tweaking Products to recognize paths and verbs

StreetCarts: Authentication and authorization with Apigee Edge and API BaaS

How to add/remove Protocols on Apigee VirtualHosts

Apigee Troubleshooting Playbooks

Use curl for Administering Apigee Edge? Here are some tips!

The Book of Apigee Edge Antipatterns

Edge API Management Activate encountered error code 5202

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2019 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • General
  • Edge/API Management
  • Developer Portal
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Analytics
  • Events
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Members
  • Badges