Category "aws-api-gateway"

How to deploy API into API Gateway stage using AWS CLI?

I am trying to deploy lambda function into API Gateway using AWS CLI. I am using aws apigateway put-integration and aws apigateway put-integration-response to u

Serverless framework can't connect to existing REST API in AWS

Hello and thanks in advance for the help, Im trying to connect my serverless file to an existing API Rest in AWS but when I make the deploy it fails with the me

AWS CDK - Cognito UserPool authorizer on API Gateway not working

My goal is to set up some lambda functions which are public (i.e. no authorization required to send requests) and other ones which require a User to be logged i

Amplify API REST with AWS_IAM: Request failed with status code 403

I'm trying to execute API calls from ReactNative AWS Amplify to API Gateway endpoint using AWS_IAM authorization. I do it by calling (all Amplify initialization

AWS API Gateway Private API Custom Domain Name

AWS Document says, Custom domain names are not supported for private APIs. Source: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway

AWS HTTP API Gateway integration with SQS - MessageAttribute doesn't work

I've integrated HTTP API Gateway with SQS and have some problem with MessageAttributes. The main goal is to pass parameter in URL, attach it to message attribut

XMLHttpRequest error in flutter web [Enabling CORS AWS API gateway]

Note: It turns out that this had nothing to do with flutter and everything to do with the fact that I had set the API gateway to a Lambda Proxy I am trying to h

Why aren't HTTP Headers passed from AWS API Gateway to Step functions

I have an api gateway set up with integration to a step function - the integration is working well and my function is executed. However I have a need to access

What is the server discovery endpoint (well-known url) of a AWS Cognito Userpool?

OpenID providers publish their metadata at a well-known URL. In Okta it looks something like this: https://dev-599740.okta.com/oauth2/default/.well-known/oauth-

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