Category "aws-api-gateway"

AWS API Gateway Websocket UnknownError

We are experiencing an error when doing a SDK postToConnection() call as a promise, full error details given below. Other calls in the same function with a dif

Incorrect Access-Control-Allow-Origin being added automatically to POST & DELETE endpoints [closed]

I have an app built with FastAPI hosted on API Gateway using serverless. The API: https://xxxxx.execute-api.xx-xxxxxx-x.amazonaws.com/dev/{pro

Getting authorizer context from Step Function executed from API Gateway

I'm trying to get my API Gateway api to: Run an authorizer Pass authorizer context to a Step Function execution Respond to client with Step Function output I al

WAF Protection for api gateway using websockets

I have a use case where i am supposed to connect my client to apigateway using websockets. I have seen the API gateway can be configured with WAF rules in case

Fetch API with x-api-key header

I have set AWS Usage Plan and attached a key to the API. I have this code which throws 403 Forbidden. fetch(myapi, { method: 'GET', headers:

How to pass passwords trough api gateway securely?

I have a lambda function to signup users into a cognito userpool. I want to fusionate lambda with api gateway to make easier. What is the safest way to send pas

Is there a way to connect an Appsync resolver to an API gateway endpoint that's authorized via Cognito userpools?

I have an existing API Gateway endpoint that is secured by a Cognito userpool authorizer. I'm not able to change the authorization method at this time. I would

Create API Gateway that can read non-public S3 bucket using CDK

I am trying to create a proxy API Gateway using CDK that can access non-public S3 bucket. To do this, I created a role: const role = new iam.Role(this, 'apigw-s

Specify content-type in API Gateway method response using CDK

I am creating proxy API gateway to non-public S3 bucket using CDK. The S3 bucket contains html, javascript, and css files. I created an api using CDK like this:

AWS SAM Deploy, how to find URL of API Gateway?

How do I find the URL address of the API Gateway after deployment from Command line ? I use a script similar to below to deploy my API Gateway and Authorizer,

Access AWS OpenSearch's Dashboard through API Gateway

I'm trying to setup AWS OpenSearch(AWS version of ElasticSearch) and access its dashboard through API Gateway. In this way, I think I can enforce authentication

Add custom domain to API gateway without serverless-domain-manager

I want to add a custom domain to the API Gateway using serverless framework but without "serverless-domain-manager" or any other plugin. I am looking for a more

How to get Cognito Identity Id in backend that is requested by AWS API Gateway?

I use AWS Cognito authentication in my web application. I have a PHP backend with REST API. After user authentication I make requests to AWS API Gateway using t

Enabling CloudWatch logs for ApiGateway?

Im trying to use CloudFormation to configure CloudWatch logs for an ApiGateway. Please see the settings I need in the attached picture (I cant post images into

How to add functions like generating random UUID in velocity template for request/response mapping in API gateway

I am creating a request mapping template for AWS API gateway. In that template I want to customize the request params based on certain conditions and apply oper

AWS Api Gateway / AWS ALB / Kong Api Gateway

I have a task to replace current CA layer 7 with new API gateway. New API gateway should be able to handle 1. Rate limiting 2. Authentication 3. Ver

AWS API Gateway: User anonymous is not authorized to execute API

Trying to post to an API I've created in API gateway: { "Message": "User: anonymous is not authorized to perform: execute-api:Invoke on resource: arn:aws:

AWS Api Gateway: Missing Authentication Token

So i have a Custom Domain Name setup for api gateway linked to a lambda function. I have it working fine if i do https://api_domain.com/something the behavior i

AWS API Gateway Integration Response - Lambda Error Regex fails matching when response contains new line

I have API Gateway as a trigger to my lambda function. Whenever my lambda raises an exception, it gets matched with the pattern configured in Integration Respon

Adding API to Usage Plan using Serverless Framework

My serverless.yaml file is as follows: service: aws-python provider: name: aws runtime: python2.7 stage: beta region: us-east-1 package: include: