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

Cannot test Cognito authenticated API Gateway call in Postman (its an ADMIN_NO_SRP_AUTH pool)

I've managed to successfull login to the API gateway I've made via my iOS device and Cognito. The problem is I'd like to use postman to test the API calls then implement them on the phone. Currently, Postman cannot authenticate (despite AWS saying…
3
votes
3 answers

Django Zappa generated cloudfront generates 403 error

I run a Django project deployed on AWS lambda using serverless Zappa framework. This can be accessed by a randomly generated link from AWS API Gateway lets say:- randomly-generated-link.aws.amazon.com/production I have also created an SSL…
3
votes
1 answer

What is the difference between Aws API endpoint types - Http vs http proxy?

Im trying to understand the AWS API Gateway http endpoint and http proxy endpoint. At this point my understanding is that If you have an existing REST service, you can use http proxy for additional services on top of my REST service. But what…
Dexter
  • 101
  • 1
  • 9
3
votes
2 answers

AWS Api Gateway not setting CORS on 204

I've built a frontend application with Angular which uses an API backend hosted on AWS ECS, provided by AWS Api Gateway. So, this is my setup: /user/{userId}/account/{accountId}/dashboard/{proxy+} is the endpoint on API Gateway it's using an AWS…
3
votes
0 answers

How to manipulate request Accept header for AWS API Gateway Lambda LAMBDA_PROXY integration

I've written a small lambda function and deployed to AWS using the serverless framework. It provides a single function that returns a png file. When the resource is opened in a browser it correctly loads a png. When requested with curl curl…
onmylemon
  • 724
  • 8
  • 25
3
votes
3 answers

How to process binary data from API Gateway in Lambda and vice-versa?

I'm currently have the following setup: 1. S3 Bucket 2. API Gateway with GET/POST resource 3. Two Lambda Functions (one for getting data from s3, one for storing data to s3) For example the GET Resource, i pass a key parameter, which is used in the…
3
votes
4 answers

AWS API Gateway ignores auth policy returned from the Custom Authorizer Lambda Function

I'm trying to implement custom authorization on API Gateway, that would check user's permissions on each particular endpoint behind it, by reading them from the DynamoDB. I associated the authorizer with the method in question (screenshot…
3
votes
0 answers

How do you pass query string parameters to the AWS API Gateway client with the Javascript SDK?

I have an endpoint defined in AWS API Gateway that uses a Lambda integration. The Lambda function expects query string parameters that would be available in the event object passed to it. My API is at…
The Unknown Dev
  • 3,039
  • 4
  • 27
  • 39
3
votes
2 answers

How do I populate the depends_on on an aws_api_gateway_deployment resource if the aws_api_gateway_integration was created in a Terraform module?

In the Terraform docs for aws_api_gateway_deployment it says: Note: Depends on having aws_api_gateway_integration inside your rest api (which in turn depends on aws_api_gateway_method). To avoid race conditions you might need to add an explicit…
Force Hero
  • 2,674
  • 3
  • 19
  • 35
3
votes
1 answer

API-Gateway and Lambda deploy: Invalid permissions on Lambda function

I'm trying to deploy an AWS API Gateway and Lambda with Terraform. The gateway is just a proxy to my function. After running terraform apply every web request to the endpoint fails. API Gateways logs this error message to Cloudwatch: Execution…
Simon
  • 313
  • 5
  • 15
3
votes
2 answers

Specify which account/user can invoke the API using SAM and API Gateway

I'm trying to create an API Gateway which invokes a Lambda function using SAM. I want to restrict access to the API in such a way that only certain IAM accounts/users can access the API. How should I do that? I couldn't find a proper way to attach a…
3
votes
1 answer

How to authenticate api gateway call to another api gateway

I have API Gateway A calling API gateway B through an HTTP integration and I'd like to use a resource based policy to authenticate this. There is a Resource Policy tab on the API Gateway B that I can modify to add the role from the other account. …
user1584120
  • 1,169
  • 2
  • 23
  • 44
3
votes
0 answers

In AWS Api gateway custom authorizer, how to add custom headers to the input request based on validation on headers and send to backend

In AWS API gateway, I am using custom lambda authorizer to validate request headers. I need to update the existing headers or add new ones based on the validation result. Below is the lambda authorizer logic in java, validation works as expected.…
3
votes
2 answers

aws api gateway header validation against matching pattern

I am creating an AWS API Gateway using terraform and openAPI specification with swagger. I need to add a request validator for validating the headers against a matching pattern [a-zA-z0-9]{10}. I was able to set up basic validator that checks if the…
3
votes
1 answer

Access Api Gateway from Lambda under VPC

I need to fetch some data from ApiGateway endpoint and then based on response store this data in database. I created simple Lambda function that just fetch data from ApiGateway endpoint and print it in console. My first Lambda function did not have…