Questions tagged [amazon-api-gateway]

69 questions
1
vote
0 answers

AWS API Gateway + Cognito + IAM

I'm working on an API for my company. I'm trying to restrict external users from accessing specific methods of a specific endpoint using IAM + Cognito. Currently I have a single Cognito user pool, with two groups (internal and external). There are…
1
vote
1 answer

AWS CloudFront Wordpress Origin Issue

I facing and issue related to AWS CloudFront and my WordPress website. WP website is behind AWS CF and it utilizes a third party service, let's assume it's a verification service. Scenario is like WP website receives a request from user and it then…
1
vote
0 answers

ECS task to VPC endpoint/NAT Gateway routing

we have an ECS task that makes Rest API calls of two types: /path1 and /path2 in a Private subnet. We route the requests to Internet Gateway through a NAT gateway present in a public subnet. Flow: ECS task -> NAT Gateway -> Internet Gateway. Now, we…
1
vote
1 answer

DDOS AWS API Gateway protection

I have publicly exposed API Gateway (HTTP). To authenticate you have to provide a valid JWT. I want to secure this APIGW with Cloudfront + WAF. After reading docs I think that API Gateway endpoint is still exposed to the Internet. The only thing…
1
vote
1 answer

AWS HTTP Gateway: private integration routing without path variables

I've been setting up an HTTP gateway for the first time and came across an issue with private integrations. I want all my integrations to be private but it doesn't work well with routing. I have a private integration with a $default route and it…
1
vote
1 answer

What is causing BadRequestException when calling the ExecuteStatement operation on Aurora Serverless db

I have a lambda function that retrieves records from AWS Aurora Serverless db. Now I thought of adding api gateway to trigger the lambda function but I get this error Connect an AWS Lambda function triggered by API Gateway to Aurora Serverless MySQL…
1
vote
1 answer

How do I use AWS SAM to deploy an AWS API Gateway and AWS Java Lambda including POST caching and disabling logging

How do I deploy a lambda Java function with an API gateway REST interface including caching POST methods using AWS Serverless Application Model?
Tim
  • 31,888
  • 7
  • 52
  • 78
1
vote
1 answer

How can I track user requests to my external API on AWS?

I'm a bit of a beginner but I'm working on creating an external API with AWS SAM (using API Gateway and Lambda), and I want a way to track & monitor usage. Some options I was considering: 1. Store the requests in a database Pro: It would allow me to…
1
vote
2 answers

On AWS, is it possible to have CloudFront proxy requests to API Gateway while maintaining the request's query string?

I have a CloudFront distribution configured with multiple Origins, including an API Gateway deployment. I'm trying to create a Behavior on CloudFront so that any requests received to a /api/* path will be redirected to the API Gateway and what I did…
1
vote
0 answers

Serverless Lambda infrastructure for listening to Websocket

I'm still new in the AWS Lambda & Api Gateway world, but it seems a good fit to my new project. I still have some concerns, and I'll be very happy if you can assist. In my new project (Financial data), I need to deliver different type of data :…
Francois
  • 13
  • 4
0
votes
1 answer

How to solve python POST response 405

How to solve python POST response 405? import requests import json from requests.auth import HTTPBasicAuth myHeaders = { 'accept': 'application/json', 'content-type': 'application/json', 'X-Killbill-CreatedBy': 'demo', 'authorization':'Basic…
0
votes
1 answer

Why use AWS API Gateway instead of naked Lambda?

This is more of a suggestion that I need. What is the need for API Gateway when we can directly execute Lambda functions from the apps? What are the missing pieces provided by API Gateway which we will otherwise miss while using naked lambda?
0
votes
1 answer

API Gateway and VPC access lists

My understanding is that controlling IP address access to AWS api-gateway is via Resource policies. This does not sound ideal as it would involve deploying the API each time new access was required (change control issues). Can this access not be…
nipy
  • 107
  • 3
0
votes
0 answers

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 request to a API Gatway on amazon which is using a custom…
Thomas
  • 1
  • 1
0
votes
1 answer

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 may not be permitted to connect to an API…
aljo f
  • 103
  • 3