Category "aws-api-gateway"

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:

Missing Authentication Token while accessing API Gateway?

I am trying to call a Lambda Function through AWS API Gateway. When I mention Authentication type NONE it works fine but API become public and anyone with url

AWS API Gateway custom Authorizer strange showing error

Here is the context: I set up a resource in the API gateway. /user/company This resource have 2 methods. Get and POST. I have configured a custom Authorizer fo

How to access host in lambda behind both API gateway and cloudfront?

I have a lambda function being executed by an API gateway. I have cloudfront pointing traffic to the API gateway endpoint. How do I access the host/domain the

Custom domain for API Gateway using CloudFormation

I'm trying to define a custom domain (sub domain actually) for an API Gateway using CloudFormation. According to all the documentation I've been able to find th

AWS Cognito: Verify deletion of user

We need a verification step for user deletion through AWS Cognito. Upon requesting delete a verification code should be sent to the users email address (like it

How to pass a params from POST to AWS Lambda from Amazon API Gateway

In this question How to pass a querystring or route parameter to AWS Lambda from Amazon API Gateway shows how to map query string params to AWS lambda using AP

AWS custom domain mapping with uri parameters

I’m using a serverless micro services architecture and have multiple REST API GWs. All APIs are mapped using Custom Domain to a base URL. For example: API

Identify Google signed in user in AWS Lambda invoked by API Gateway

When any internet user enters a certain URL, I serve up an html dashboard that is generated from an AWS Lambda written in Python. This requires a bit of setup f

AWS API Gateway path based routing to private integrations

I am using AWS HTTP API Gateway to route requests to my integrations in the VPC. I've added a custom domain and I want to route my requests to my integrations b

convert javascript code to bookmarklet for easy access

I have this code that I am trying to use as a bookmarklet. fetch('https://hf.space/embed/Alifarsi/news_summarizer/+/api/predict/', { method: "POST", body: JSON.

AWS User is not authorized to access this resource

I'm new to AWS API Gateway and Lambda and I am wondering if anyone could help? I generate an access token using Auth0 and it works on postman returning all of

Defining URL Query String Parameters in AWS::Serverless::Api SAM template

How do I define and validate URL Query String Parameters for an AWS::Serverless::Api in a SAM template? They don't seem to be mentioned in the documentation htt