Questions tagged [aws-api-gateway]

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.

With a few clicks in the AWS Management Console, you can create an API that acts as a “front door” for applications to access data, business logic, or functionality from your back-end services, such as workloads running on Amazon Elastic Compute Cloud (Amazon EC2), code running on AWS Lambda, or any Web application.

Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management. Amazon API Gateway has no minimum fees or startup costs, and you pay only for the API calls you receive and the amount of data transferred out.

Amazon API Gateway product page

What is Amazon API Gateway?

7665 questions
3
votes
1 answer

SAM Template: multiple microservice lambdas sharing a single AWS::ApiGateway::DomainName

My goal is allow several independent lambda resources (microservices) to share a common custom domain for test environment. Using the below template, deploying microservice #1 went off without issue. However, when deploying microservice #2,…
Kwhitejr
  • 2,206
  • 5
  • 29
  • 49
3
votes
2 answers

AWS::Serverless::Api Resource Policy with Cloudformation SAM

Recently AWS announced that Amazon API Gateway Supports Resource Policies for APIs Is it possible to attach a resource policy to a AWS::Serverless::Api created via Cloudformation with SAM?
niqui
  • 1,562
  • 1
  • 16
  • 28
3
votes
1 answer

AWS CloudFormation stack deploy fails with error "property Responses not defined for resource of type API"

This is now resolved, but I'd like to leave it in case it helps someone else. The issue was that I misinterpreted the error. I interpreted "property Responses not defined for resource of type Api" to mean that I hadn't defined any, when it…
3
votes
2 answers

Cloud Front - overlapping Alternate Domain Names

In Api Gateway I've created one custom domain, foo.example.com, which creates a Cloud Front distribution with that CNAME. I also want to create a wildcard domain, *.example.com, but when attempting to create it, CloudFront throws an…
nachoab
  • 1,908
  • 1
  • 23
  • 36
3
votes
1 answer

OpenID authentication in AWS API gateway

I created an API with AWS API gateway that triggers a lambda function. Now I want to restrict access to this API. I own an OpenID connect identity provider. I want to require people to authenticate with my OpenID identity provider before accessing…
Gasp0de
  • 1,199
  • 2
  • 12
  • 30
3
votes
5 answers

how to upload xls/xlsx files using API Gateway and send the file data to the lambda function?

I'm new to lambda and API Gateway. I have done simple things using this services but right now I have a requirement where a user can upload an excel file. The upload process simply triggers an API gateway endpoint which is integrated with a lambda…
Nisman
  • 1,271
  • 2
  • 26
  • 56
3
votes
1 answer

How to get the name of the stage in an AWS Lambda function?

I have a lambda function(without APIGateWay. I want same lambda function in both test and prod stage and for that I want to get the stage name during runtime. My code is written in java and I know that we can find out the default AWS region using…
user6438693
3
votes
0 answers

How to allow access for AWS API Gateway to invoke all AWS Lambda functions in any path

I'm preparing a new AWS API Gateway under few environments - production, staging, testing, development. Let's say I have two lambda functions connected to the GET /first and GET /second. Those resources are pointing to the lambda…
hsz
  • 148,279
  • 62
  • 259
  • 315
3
votes
1 answer

Is it possible to send an x-api-key header to an aws api gateway from a twilio webhook?

I have a Twilio phone number and setup a webhook for incoming SMS messages. I want to point that webhook to an AWS Api Gateway api that requires an api key. Is it possible to send an x-api-key header to an aws api gateway from a twilio webhook?
John Albano
  • 189
  • 3
  • 10
3
votes
1 answer

Not able to send aws $context variable data in header - http proxy

I am using aws api gateway to send a http proxy to my server - if the user is authenticated, and need to send the user's username to my server for identification purpose. if I use the $context variable in body mapping…
Abdeali Chandanwala
  • 8,449
  • 6
  • 31
  • 45
3
votes
1 answer

"NLB ARN is malformed" when create VPC link for AWS APIGateway

I followed the tutorial to create a VPC link to my private elb balancer. https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-api-with-vpclink-cli.html But it failed, and got an error message "statusMessage": "NLB ARN is malformed". I…
3
votes
1 answer

How to access path variable (GET) in AWS Lambda function

I am working aws lambda with API gateway. for my compare-yourself-api resource I created a sub resource called field (please refer screenshot). when I am testing it, I can see the request uri: /compare-yourself-api/test1. I can see test1 in request…
3
votes
2 answers

AWS API gateway response body template mapping (foreach)

I am trying to save data in S3 through firehose proxied by API gateway. I have create an API gateway endpoint that uses the AWS service integration type and PutRecord action for firehose. I have the mapping template as { "DeliveryStreamName":…
3
votes
0 answers

OAuth + Webhooks Use Case

I set up an AWS API Gateway with a webhook and want to accept POST requests from only a Zapier trigger/web request. I've done research on OAuth and authentication (listed below), but I'm new to APIs/webhooks and could use help. Is OAuth appropriate,…
z_build
  • 76
  • 4
3
votes
1 answer

Python requests module error, 'temporary failure in name resolution' in kivy Android app

Built with buildozer using: Python 2.7.12 Kivy 1.10.0 Cython 0.25.2 My app is a simple test app that continuously checks an API I created with AWS API-Gateway/lambda for a changes in a returned value and alerts me. The program runs fine with kivy…