Questions tagged [aws-http-api]

71 questions
1
vote
0 answers

serverless framework: Connecting additional resources (sqs) to api gateway (httpapi)

I have an httpapi apigateway, that I need to integrate directly to an sqs queue (directly). I found this thread from over a year ago: https://forum.serverless.com/t/api-gateway-integration-with-sqs/7339 that suggested two plugins, but as mentioned…
1
vote
0 answers

AWS::Serverless::HttpApi Cors configuration working for POST but not OPTIONS

I have been fighting CORS for a while now and I have run out of ideas. I have a AWS::Serverless::HttpApi deployed through SAM. This API has only one endpoint for now, it takes a POST request to /auctions. Testing in PostMan it works, but of course…
gamda
  • 580
  • 6
  • 24
1
vote
1 answer

AWS::Serverless::HttpApi OpenAPI definition with http integration

I have the following AWS::Serverless::HttpApi defined: MyApi: Type: AWS::Serverless::HttpApi Properties: CorsConfiguration: AllowOrigins: - http://localhost:3000 - https://localhost:3000 -…
1
vote
1 answer

Validating API Gateway's HTTP API incoming payloads

Is it possible for AWS API Gateway to validate an HTTP API's incoming payloads before it executes the Lambda function, saving the expense of calling a Lambda function when the input is invalid? I'm aware that the older REST API's can have their…
user16442705
1
vote
1 answer

How to make multiple HTTP method calls in AWS using HTTP API?

I have just started with AWS Serverless and I am having some doubts. Here is my use case and what I have tried and done so far: Use Case: Make multiple GET and POST requests to an API using HTTP API(not REST API) in AWS using lambda function. What I…
1
vote
1 answer

How to check http request method using API Gateway v2

My Architecture: AWS HTTP API w/ reverse proxy integration Plain Lambda function Postman or browser I'm trying to check the request method to handle actions, based on this answer they recomm 'use strict'; const AWS = require('aws-sdk'); const…
1
vote
1 answer

How to forward cloudfront to HTTP API with custom domain

I am serving static website with s3 and cloudfront at / path. I want to serve /api/* from HTTP API. My static website is configured properly with cloudfront. And I have also configured the custom domain to HTTP api with cdk But when I try to access…
1
vote
0 answers

AWS JWT-Authorizer not supporting "any" audience

It seems to me that the JWT-authorizer in a HTTP-api on AWS API-Gateway does not support adding "any client" as allowed audience. This becomes a pain if you want to use it for an API where clients get added removed a lot. Am I missing something (an…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
1
vote
1 answer

AWS JWT authorizer not supporting google issuer

the issuer in the tokens from google is: "accounts.google.com" but the jwt-authorizer config requires an issuer url with "https://" in front That means the google tokens never be accepted by the authorizer since the token iss claim is missing:…
0
votes
1 answer

AWS API Gateway HTTP API: How to modify the api response before it is returned to the api caller

In AWS API Gateway HTTP API, how can I modify the api response before it is returned to the api caller? Is it even possible?
YulePale
  • 6,688
  • 16
  • 46
  • 95
0
votes
1 answer

Call http request with Step Functions

I would like to know if I can call http request as a state in Step Functions in order to perform some actions, such as adding a new item to DynamoDb. Could it be done without using lambda functions? As an example, I would like to create something…
0
votes
0 answers

Django not displaying action messages when used with apigateway http api

I have deployed a Django app on aws lambda and configured API gateway HTTP API. The action messages are not displayed when I perform actions like creating or deleting objects on Django admin. The action messages are properly displayed when I…
Msvstl
  • 1,116
  • 5
  • 21
0
votes
1 answer

Why does my login from the cognito hosted ui fail (using jwt auhtorizer)?

What I'm trying to achieve: A lambda serving html via an http api route path with a custom subdomain (done!) Restricting access with an authorizer (done!) Using Cognitos user-management and login functions (done!) So far so good, the login itself…
0
votes
0 answers

AWS Lambda response visible in AWS Console but Axios shows generic error instead

I'm using Serverless to create Python AWS Lambda functions triggered by httpApi events. My function (yes, I'm just passing back the context passed in by API Gateway so I can look at it): def get_context(event, context): try: typ =…
Brian
  • 1
  • 2
0
votes
1 answer

AWS API Gateway (HTTP API) getting 404 on other stages and custom domain

I have an HTTP API in AWS API Gateway that has got integration with an internal ALB using a VPC link. Everything's working correctly when I'm accessing using the default endpoint (e.g. https://.execute-api.ap-southeast-2.amazonaws.com) and…