Questions tagged [aws-rest-api]

33 questions
9
votes
2 answers

AWS cannot delete RestApi

On deleting AWS Rest API from UI or through AWS console or terminal with command: aws apigateway delete-rest-api --rest-api-id 1234123412 (mentioned in aws docs) I faced the error saying to delete base-path mappings related to RestApi in your…
8
votes
1 answer

AWS v1 vs v2 API for listing APIs on AWS API Gateway return different data for the same API Gateway instance

I want list list APIs available on my AWS API Gateway instance using REST API. I tried: v2 API :: https://apigateway.eu-central-1.amazonaws.com/v2/apis v1 API :: https://apigateway.eu-central-1.amazonaws.com/restapis I am using the same auth…
Przemek
  • 203
  • 3
  • 10
5
votes
2 answers

Is it possible to make an AWS HTTP API gateway private?

Using AWS Direct Connect, we've built a network between our on-premise and our AWS VPC. We've developed a web application that users will access from within the on-prem network. We're using the HTTP API Gateway, which uses a VPC Link to connect to…
5
votes
4 answers

AWS Upload file to S3 REST API - Missing required header for this request: x-amz-content-sha256

Unfortunately i cannot use AWS SDK and i must use REST API AWS services(i am working with Flutter WEB). So i start to do research on aws docs and this is what i did: Create bucket. make all permission to be public(for test only) open access…
Sahar Vanunu
  • 345
  • 2
  • 5
  • 19
3
votes
0 answers

AWS Api gateway greedy path takes over static route issue

I have an AWS Api gateway with Rest API configured. There are 2 resources configured POST /v1/operations/init - this is the static route ANY /v1/{proxy+} - this is the greedy. Greedy path (no.2) requires API KEY but not the static one. When I try…
Kurama
  • 31
  • 1
2
votes
1 answer

Sam template rest api, Can we have separate handler for each function event type?

Is it possible to have separate handler for one function but each event type. For example. Type: AWS::Serverless::Function Properties: FunctionName: ecommerce-lambda Handler: src/handlers/ecommerceHandler.handler. <--- HERE is…
2
votes
1 answer

Access to output data from stack

I am creating a REST API using CloudFormation. In an other CloudFormation stack I would like to have access to values that are in the ouput section (the invoke URL) of that CloudFormation script. Is this possible, and if so how?
2
votes
1 answer

How to disable case sensitive path segments for API Gateway RestAPI

Recently, I noticed that requests to RestAPIs in API Gateway are path case-sensitive. How exactly can I disable this so that it is no longer case sensitive? Is this even possible? Id like my request to api.company.com/prod to work along with…
Judy007
  • 5,484
  • 4
  • 46
  • 68
1
vote
1 answer

AWS RestAPI does not forward Cognito Auth Information to Lambda function

as the title already implies my RestAPI does not forward the user information of the authorized client to my lambda function. I tried with a rust lambda function (see the issue here), but it turned out, a nodejs implementation has the same problem.…
Ben
  • 38
  • 5
1
vote
0 answers

Creating rest api with get method using AWS amplify, with a python lambda function

Is there a way to set up a rest api using a python lambda function with a get method that uses query parameters by using the amplify CLI or editing the code? I know this can be done through the AWS Management Console, but was hoping for a more…
1
vote
1 answer

How to get the list of repository from AWS CodeCommit using AWS REST API call in Postman tool?

I have to use AWS REST API to work with various cloud services. Initially, I'm trying in postman tool to fetch the list of repositories from AWS CodeCommit. I'm following this link…
0
votes
1 answer

AWS REST API signature errors

I want to retrieve AWS SSM parameters in my R code, but R doesn't have an AWS SDK (to my knowledge). So I decided to use the AWS REST API, which is simple to use except for needing bespoke signatures calculated for all requests. Happily the package…
mm689
  • 359
  • 2
  • 10
0
votes
1 answer

Dockerized Localstack Terraform Cannot Create Simple Resource

I have a simple setup where I only want to start localstack through docker-compose, then run a terraform file to create an aws_api_gateway_rest_api resource. However, it fails to connect to localstack's restapis endpoint…
0
votes
0 answers

Is it possible to create resource after {proxy+} in aws API Gateway?

my api URI looks something like this: http://://foo/bar//inputControls So with {proxy+} I can handle http://://foo/bar/ where can vary but I am not able to add…
LeoScott
  • 63
  • 1
  • 9
0
votes
1 answer

How to configure APIs for Lambda

I made a lambda function that calls an API and returns the content returned from said API in JSON format: import json import requests print('Loading function') def lambda_handler(event, context): URL =…
1
2 3