Questions tagged [amazon-api-gateway]

69 questions
2
votes
1 answer

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 included creating CNAME credentials, which were…
JRogerC
  • 123
  • 1
  • 5
2
votes
1 answer

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 policy), but I wonder if this is the only way. The…
2
votes
0 answers

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 stage. For example: api.example.com/app1/prod/res1…
Egal
  • 121
  • 4
2
votes
2 answers

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 global option httplog …
Rudy Lee
  • 165
  • 3
  • 8
2
votes
1 answer

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. Here's the CloudFormation snippet that refers to…
2
votes
1 answer

AWS - lambda versions to different gateway stages?

Coming from a "classic/standard" development I'm used to have different deployment stages, e.g. staging and production, each one with its application version. AWS Lambda functions and API Gateway are freaking me out on how to handle versions and…
2
votes
0 answers

Why is CloudFront ApiGateway CloudFront-Viewer-Country reporting US as the country for eu-west-1 distribution and viewer in UK?

I have an AWS CloudFront distribution created using CDK (CloudFrontWebDistribution) fronting an ApiGateway, deployed in eu-west-1 (Dublin). I can see in the API logs that the CloudFront-Viewer-Country header is set to US, even though I am accessing…
John
  • 263
  • 1
  • 2
  • 11
1
vote
1 answer

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 found was this amazon documentation:…
1
vote
1 answer

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 one table. The client app makes one request every 5…
Mau
  • 113
  • 5
1
vote
1 answer

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.g., my current setup) correctly — that is, if AWS…
1
vote
1 answer

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.
1
vote
2 answers

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/workspace in the name or, if it's a shared…
1
vote
1 answer

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 = "authorizer" type …
djfdev
  • 111
  • 2
1
vote
1 answer

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 authentication. @app.route('/authenticated',…
Vingtoft
  • 1,547
  • 3
  • 15
  • 17
1
vote
0 answers

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?
Reid
  • 411
  • 6
  • 17