7,834 questions
-1
votes
0
answers
25
views
AWS API Gateway Unable to access FastAPI Swagger docs and the endpoint
Devops already deployed the FastAPI gateway and every endpoint. Every time I try to access the endpoint it always says fetch error not found stage/openapi.json I even try to use root.
Here is the main....
1
vote
1
answer
41
views
AWS API Gateway (REST API) Resource Policy to restrict one endpoint to certain IPs while other endpoints can be reached by all IPs
I have the following Resource Policy defined for my "REST API" in AWS API Gateway:
I tried the following appraoches:
{
"Version": "2012-10-17",
"Statement": ...
0
votes
0
answers
58
views
How to convert a http response with content type application/json to application/octet-stream?
What is the issue?
We use AWS API Gateway for integration with the AWS S3 using REST calls.
In the API Gateway transformation we haven't supported HTTP_HEADERS yet. And we don't want to roll out ...
0
votes
0
answers
12
views
Extract message from lambda record - triggered by alertmanager to api gateway
trying to create a message alert from alertmanager(my instance is having pod restarts in production namespace), using lambda to trigger SNS messaging in case the alert jumps in.
so its- alertmanager(...
0
votes
1
answer
22
views
SAM template authorizerr error: authorizerUri/Fn::Sub/1/__FunctionArn__] 'null' values are not allowed in templates
Trying to create and API Gateway with lambda and attach the authorizer to it. The api and lambda creation works perfectly, but when I add the authorizer section, I get the following error:
Error: ...
0
votes
0
answers
25
views
Is there a way to prevent AWS ApiGateway from re-writing headers?
I am using an AWS proxy ApiGateway that is mapped to a lambda function that is hosting a REST Api. Everything is wired up and functioning, except I see that responses from the server are remapping my '...
1
vote
0
answers
47
views
How to configure AWS API Gateway Integration Request for CloudWatch Logs StartQuery Action?
I'm trying to configure API Gateway to provide a POST method that sends the StartQuery action to CloudWatch Logs but I just seem to get 404 errors in the log output as when I use Edit integration ...
0
votes
1
answer
21
views
Having API Gateway sign a proxied request destined for OpenSearch in CloudFormation
I have a CloudFormation setup that I hope to use to automatically index documents in OpenSearch. I've set up an ingestion bucket in S3; when a file's dropped in the bucket, it triggers a Lambda ...
1
vote
1
answer
47
views
What is the difference between a "REST API" of type "private" and a "REST API Private"
When creating an API endpoint on the AWS console, 2 options exist:
Option A: A "REST API" with "API endpoint type" of "Regional" or "Edge-optimized" or "...
0
votes
0
answers
39
views
AWS WebSocket API (WSS) Handshake Succeeds, No Data Received
I have a Node.js server hosted on AWS Fargate, listening on port 8080. It's responsive and working as expected.
The server is connected to a WebSocket API, and I’ve tested both tcp:8080 and http:8080 ...
0
votes
1
answer
23
views
How can I ensure my AWS Lambda function uses the CloudFront domain instead of the API Gateway URL for the canonical link in my Qwik SSR application?
I have an AWS Lambda function connected to an API Gateway (Regional HTTP API) and my domain is linked to CloudFront. However, my application's canonical URL is being set to the API Gateway domain ...
0
votes
1
answer
27
views
Redirect based on URL to AWS CloudFront or AWS Amplify
I have two apps in AWS.
One hosted in AWS S3 and acts as an origin for an AWS CloudFront distribution.
Another one hosted in AWS Amplify.
I would like to, based on a specific path, to redirect ...
0
votes
0
answers
24
views
AWS API-gateway multiple authorizer and caching
Context
I have an api-gateway with a custom authorizer that validates a JWT. The authorizer gives back broad resource permissions. Something like the following:
{
"Version": "2012-10-...
-1
votes
0
answers
16
views
API Gateway Access Errors with Java SDK
I'm using the AWS SDK v2 in my Java program to send a request to an API Gateway I've hosted. I'm seeing some unexpected errors where I'm receiving a 403 Forbidden response from my gateway, but only in ...
0
votes
0
answers
35
views
return 401 from lambda non-proxy api gateway and return headers
How do I return 401 to the client, based on the statusCode returned from the lambda? (non-proxy integration).
How do I return the headers from the headers field? (for 401 and 200)
return {
"...