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
0 answers

AWS Application load balancer - allowing requests only from API Gateway

How can I restrict AWS Application Load Balancer to only receive HTTP \ HTTPS requests which originated from AWS API Gateway ? I'm aware that API Gateway can generate and send client side certificate to the backend as described…
Uria W
  • 159
  • 1
  • 6
3
votes
2 answers

Cannot query AWS API using Vue and Axios

I've been trying to get a response from an AWS API for a couple of days now. It works just fine if I query it using Postman, but when I write the code using vue and axios, it simply does not work. So, here is where I am, what works and what does…
Tibi
  • 439
  • 7
  • 15
3
votes
0 answers

Best pattern to call AWS API from Elm SPA?

I'm developing an application following quite closely Feldman Elm SPA example with the API hosted on AWS API Gateway. My problem is the following: I need to sign my API calls with AWS API Signature v4. It is a less trivial task than I initially…
Digital Stoic
  • 1,229
  • 11
  • 20
3
votes
1 answer

API-Gateway Auth: AWS sigv4 vs Cognito User Pool JWT

When I use API-Gateway to define my endpoints, some of my endpoints are only accessible from a signin-ed user. (I am using Cognito User Pool to manage my users) I see different ways to achieve this goal SigV4, see Page 19; JWT token from Cognito…
chen
  • 4,302
  • 6
  • 41
  • 70
3
votes
1 answer

Receving 403 forbidden from Custom Domain in AWS Api Gateway

I'm trying to build a serverless app with AWS. My API is working fine, but my custom domain is not. I'm receiving a 403 forbidden answer. This is how it's configured my custom domain: And then I'm using the Target URL provided by this Custom Domain…
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174
3
votes
4 answers

How can I automate the end-to-end testing of my serverless web app?

So my app stack looks like this in prod: Backend: AWS API Gateway + Lambda + DynamoDB + ElastiCache(redis) Backend - algo: Long running process - dockerized Java app running on ECS (Fargate) Frontend: Angular app, served from S3 I'd…
3
votes
0 answers

Event object is empty in api gateway call to lambda

Now I have my lambda just echoing the event object: def lambda_handler(event, context): pprint(event) I have been using the event object in the code to get the path like this event['path'] When I run sam local to start up the api gateway…
red888
  • 27,709
  • 55
  • 204
  • 392
3
votes
2 answers

Kubernetes Ingress-Controller and AWS API Gateway client certificate

I have an issue, I want to use an API Gateway client certificate with my ingress config. I've generated the certificate on AWS. I've created the secret of thi certificate: kubectl create secret generic api…
3
votes
1 answer

Custom domain name for API Gateway terraform

I have 3 regional API Gateways deployed as service API. I want to map all three API Gateways to single custom domain name. I tried to do it with terraform but could not figure out what resource to use. Also I already have Custom hosted zone on…
user8453102
3
votes
1 answer

Reading Event Parameters AWS lambda

I have a lambda function (Node.js 4.3) as below: exports.handler = function(event, context, callback) { console.log('Received event:', JSON.stringify(event, null, 2)); var greeter = 'World'; if (event.greeter && event.greeter!=="" &&…
Priyanka
  • 85
  • 2
  • 6
3
votes
2 answers

AWS Lambda & API Gateway - 500 from browser but not from curl

I'm struggling with AWS Lambda and API Gateway. I can call my API fine from curl and Postman, but not from my browser. This works curl --header "Content-Type: application/json" \ --request POST \ --data '{ "baseId" : "app0ZJgZxm6LC8rBB",…
SGT Grumpy Pants
  • 4,118
  • 4
  • 42
  • 64
3
votes
1 answer

Use Swagger API validation with Serverless Framework

I want add an api validation to the serverless aws-nodes template and nothing I have tested until now has worked very well. My current approach is to overwrite the existing api-gateway, which is generated by the serverless framework, with a…
3
votes
1 answer

Cannot reference an API in Outputs section from AWS::ApiGateway::Model resource

I'm able to define and deploy my API Gateway + Lambda stack using Cloudformation / Serverless Application Model, an want to add a model to my API. I've created the model in YAML, but it appears to be unable to reference the API defined in the…
3
votes
1 answer

AWS ApiGateway Host header & Custom domain name

When using AWS::ApiGateway::DomainName, it creates hidden CloudFront distribution to actually fetch custom domain name. The problem is that when passing original request down to something like ELB, original headers are lost, including Host header. I…
3
votes
1 answer

AWS API Gateway Custom Domain with multi path

I have some services registered at API Gateway with Lambda serverless deployment. Both services are running well with long domain named from AWS API Gateway itself. Then, I am trying to setup a custom domain to gathered all services into one domain…