Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-api-gateway]

The tag has no usage guidance.

1
vote
0answers
22 views

Error while invoking private API in AWS

I have created a Private API in AWS API gateway using Internal Application LoadBalancer as HTTP_PROXY integration Request for GET Method. I also attached Resource Policy to this API and created ...
1
vote
1answer
75 views

Access private API from a domain hosted in AWS

I'm trying to make private AWS lambda call made through API gateway and I don't find the right answer on the internet, probably because I'm a beginner in AWS website management. The closest source I ...
0
votes
0answers
14 views

AWS API Gateway Lambda Authorizers + Client certificates

I'm evaluating the use of client certificatates to improve security in an application i'm working on. It all run behind on AWS and pass through an API Gateway with an attached Lambda authorizer. AWS ...
0
votes
0answers
23 views

HAProxy to Amazon API Gateway with custom domain

Hi we have been trying to handle an inbound request from HAProxy and use API Gateway to handle the request. The flow is domain1.com is the end point at HAProxy. HAProxy should then forward to ...
0
votes
0answers
18 views

aws network load balancer as internal facing or application load balancer with microservices as targets

I am using AWS ECS for microservice deployment. I have 3 microservices. I have configured ALB with path forwarding to request respective microservice. But ALB has to be public in this case to use with ...
1
vote
1answer
59 views

Offload query load from MySQL to a JSON file with expiration

I have a server installed in a fixed container with limited bandwidth and CPU. On this server, I have a website that makes a lot of requests to its database. The web app's MySQL database is only ...
0
votes
0answers
16 views

Getting issue-Unsupported Method: GET in postman while testing API Gateway API

I configured HTTP endpoint in API Gateway and tested in API Gateway. It got succeeded. While I am trying to test stage URL(after performing deploy) from Postman, getting issue Unsupported Method: GET. ...
0
votes
0answers
13 views

How do you configure a parameterized path for a lambda function in Amazon API Gateway?

I am trying to expose an existing lambda function through the Amazon API Gateway. The lambda function is expecting the parameters as pathParameters. For example: { "pathParameters": { "...
0
votes
0answers
39 views

In what region will an API Gateway + Lambda function execute?

I'm trying to understand how / where my Lambda functions are executed + from where content is pulled (via DynamoDB & S3). For example, what routing would occur if someone in India hits my API ...
1
vote
1answer
489 views

AWS Lambda as an Application Load Balancer target?

At AWS’ 2018 re:invent, AWS announced that Lambda functions can now be the target of Application Load Balancers (documentation here). I just want to ensure that I understand AWS previous offerings (e....
1
vote
1answer
625 views

AWS Api Gateway- no integration defined for method

Though I have defined the integration when I try to deploy an api gateway I keep getting "No integration defined for method" error similar to https://stackoverflow.com/questions/46087890/no-...
0
votes
1answer
55 views

AWS API Gateway in China

We are planning to launch an app that will be available globally, including China and we plan to use AWS for this. However, because of the "Great Firewall of China" we may run into problems: The app ...
0
votes
1answer
46 views

Unable to authorize Amazon API Gateway using API Key

As per amazon's documentation (https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-setup-api-key-with-console.html) I am supposed to see a dropdown near API KEY. Although I have ...
1
vote
1answer
122 views

Getting issue with VPC in Lambda function

I have attached VPC and private subnets in Lambda function. That is causing the connection issue with the API Gateway/other AWS services. Can anyone suggest the solution for this? Thank you.
0
votes
0answers
37 views

How to block a request which does not has a header using Amazon Web Services

My application back-end was laid on AWS Lambda and exposing API's using API Gateway. And forntend on CloudFront. I want to block a request which does not has a header using AWS service. Can anyone ...
1
vote
2answers
371 views

Sharing AWS API Gateway resource between Terraform Workspaces?

I've seen Terraform workspaces recommended for managing different stages (staging, production). That seems to work well with most things as you generally create different resources that have the stage/...
0
votes
0answers
83 views

AWS API Gateway/Route 53 working on 1 Base Path Mapping while giving the other a Missing Authentication Token error

I have my API Gateway hooked up to 2 Lambda expressions for the custom domain-name api.pyumipsum.com I then have it setup in Route 53 as a CNAME to api.pyumipsum.com But for some reason, anytime I ...
0
votes
0answers
68 views

Can I use AWS API Gateway for proxying a subset of my base path api's to one vpc and all others to another vpc

I have multiple API's with varying base paths all on the same subdomain. e.g : api.example.com/user/pay api.example/partner/requestpay api.example.com/partner/discount/create api.example.com/...
0
votes
1answer
730 views

AWS API Gateway with Lambda and KeepAlive (persistent connections)

I'm a bit confused about Keep-Alive with AWS API Gateway. Is this something I need to configure? or maybe be careful with this setting? Because I will use API Gateway to execute Lambda functions, and ...
1
vote
1answer
62 views

Terraform aws identity_source

How can I disable the default identity_source when deploying an API Gateway Lambda authorizer using Terraform? resource "aws_api_gateway_authorizer" "authorizer" { name =...
0
votes
1answer
400 views

Should I use CloudFront in front of API/Web just because I want them on a single domain?

I typically develop my applications with frontend single page application on S3 and backend APIs on a server typically elastic beanstalk (so ELB + EC2). I am confused over what is a good choice to put ...
0
votes
1answer
528 views

Pointing google domain subdomain at an aws api-gateway API

I have a google managed domain, and a lambda based api in aws api gateway. I want to create a sub domain that points to api gateway. I created an ACM Certificate using aws certificate manager. This ...
2
votes
0answers
1k views

Allow other AWS services to invoke Lambda using IAM

Is it possible to grant AWS services (e.g. API gateway, Secrets Manager) permission to invoke a Lambda function using only IAM roles? Normally this is done in the function's policy (resource-based ...
0
votes
0answers
35 views

Setup apache for routing to domain

We were trying to use a custom domain name for AWS API Gateway. Our IT resource, who manages the AWS account, says custom domain name is R&D and would take time. He says this can be easily ...
1
vote
2answers
2k views

AWS API gateway as proxy to EC2 based microservices

I have a couple of microservices running on EC2. My intention is to use the AWS API gateway to allow internet access to the EC2 APIs. Incoming Traffic is: internet -> API Gateway -> EC2-server ...
2
votes
0answers
878 views

AWS CloudFront with API Gateway's Base Path Mapping for IPv6 support

We currently have some APIs set up in API Gateway, with a Custom Domain Name defined with a Regional Endpoint and Base Path Mappings that map incoming requests to the appropriate API and deployment ...
0
votes
1answer
564 views

Does basepath mapping create a CloudFront Distribution

Does basepath mapping on an API in API gateway use a 'hidden' cloudfront distribution? I have an API on API Gateway, with base path mappings on a domain. However, this doesn't go through cloudfront--...
0
votes
0answers
766 views

AWS API Gateway: self-signed cert for backend HTTP endpoint integration

I have a simple AWS API gateway endpoint. It accepts an https GET request, this is passed to a back-end https API via an integraiton request, and returns simple JSON. This works great when we hit ...
0
votes
2answers
222 views

About an idea to parry DDoS attacks

Background: I'm building a web application using Amazon API Gateway, Amazon S3, AWS Lambda and so on. Note: If you don't know about AWS, any pieces of advice would be highly appreciated. Searching ...
0
votes
0answers
2k views

API Gateaway missing authentication token, why?

After extensive research and double checking, I still have the problem. Here the situation: I deployed the API with Authorization:NONE and API KEY required: true on stage "testkey" I copy&pasted ...
2
votes
1answer
2k views

Binary body passthrough from API Gateway to Lambda

I think I've closely followed the documentation and tutorials I've found so far, but I still get this to work. I just can't convince AWS not to touch the binary data I'm posting in the body. In my ...
2
votes
1answer
1k views

AWS API Gateway Custom Domain: the domain you provided is already associated with an existing CloudFront distribution

I'm simply attempting to set up a Custom Domain in API Gateway. I have ACM certificate "*.mysite.com.au" that is currently being used to serve a static S3 website out via CloudFront at "beta.mysite....
10
votes
1answer
5k views

How do I setup Route 53 to point to Api Gateway

I'm writing a Cloudformation config file to create a website all in one go. This includes, creating lambda functions, creating the API Gateway, Setting up a S3 Bucket, Creating the Route 53 zone and ...
8
votes
4answers
11k views

How can I use AWS CloudFront and API Gateway side by side for the same domain?

I'm putting that static assets of my website on S3, and setting up CloudFront to distribute them. These essentially holds the content users would need for any GET request on my site, to existing paths ...
1
vote
1answer
137 views

AWS api_gateway custom authorizer: Whats the ID of my custom authorizer?

Im implementing custom authentication using AWS api gateway and Lambda functions. In Chalice documentation, its stated that I need a authorizer_id to link the lambda function with the desired ...
1
vote
0answers
306 views

AWS API Gateway use HTTP instead of HTTPS

I have an IoT device that is posting data to an AWS API Gateway. The device can not currently use HTTPS. Is there any way that I can get the API gateway to accept a standard HTTP POST request?
2
votes
1answer
2k views

HAProxy as reverse proxy for AWS API Gateway

As the title suggest, I have an AWS API Gateway endpoint that I want to put behind HAProxy. This is my current HAProxy configuration defaults mode http log ...
2
votes
1answer
6k views

How do I pass parameters into a nested stack in Amazon CloudFormation?

I'm using CloudFormation to manage an Amazon API Gateway stack, and trying to (re)use a nested stack to add an OPTIONS method to each of my HTTP endpoint methods so I can respond with CORS headers. ...