Questions tagged [aws-rest-api]
33 questions
0
votes
0 answers
How to convert AWS Rest API to Private Rest API without changing it's URL?
I am trying to make one of my AWS Rest API private. But after doing steps that AWS docs suggest, It's changing URL of that API.
Here's the steps that I tried:
Create VPC endpoint for API execution.
Change APIs endpoint type to Private
Add VPC…

Dirgh Patel
- 33
- 5
0
votes
1 answer
Keeping AWS API Gateway-Rest APIs on Sync for multi-region
In our project we are using 2 regions (Oregon, N.virginia) one for Production and other for DR(Disaster recovery) site, we have the same Rest APIs over both regions, but the overhead arives when we have any update for the APIs we need to update on…

adarsh g nath
- 1
- 1
0
votes
1 answer
Cannot setup CORS on REST API and S3 integration
I am unable to setup CORS on my REST API integration with S3. I am trying to configure my resource to return the list of objects in my bucket. I have enabled CORS, it created OPTIONS method but when I make OPTIONS request either from JS or curl I…

jedi
- 2,003
- 5
- 28
- 66
0
votes
1 answer
AWS IAM api request failed with error "The request signature we calculated does not match the signature you provided"
I am using CreatePolicy API to create a policy with specific permissions. Initially passed json code as a value to query string parameter "PolicyDocument" but the request failed with code 400 Bad request. While testing through postman found that we…

Sumit Patil
- 21
- 6
0
votes
0 answers
AWS SAM: MinimumCompressionSize property doesn't work on Lambda responses for AWS::Serverless::Api
According to the AWS SAM Template Documentation, you can specify a MinimumCompressedSize attribute for AWS::Serverless::API resources which should compress response bodies which exceed a given threshold, yet in local testing this doesn't work.
Take…

Milan Donhowe
- 193
- 1
- 9
0
votes
0 answers
How to receive Decrypted path variable using AWS Rest API Gate way in java
I am new to AWS Lambda,
I have created one AWS Rest API gateway and connected to my AWS Lambda, I am able send request and receive response, But the Issue is while am sending request with space
,ie, am sending a path variable with space "Contact…

Pravin kumar
- 62
- 7
0
votes
0 answers
AWS CDK RestAPI with custom domain gives an uncertified link
I was following this tutorial to connect my lambda to RestAPI
I am using python CDK and the tutorial kind of worked, when I go to the api.DOMAIN.com its using http instead of https because certification error, the url in the certificate is…
0
votes
1 answer
AWS Api Gateway "put-rest-api" doesn't create trigger in Lambda function
I am trying to put template in API Gate Way with next command:
aws apigateway put-rest-api --rest-api-id $APIGW --mode merge --body 'fileb://./api-gw-template.json'
Template is:
{
"swagger" : "2.0",
"basePath" : "/aws",
"schemes" : [ "https"…

Oleksandr Lytvynskyi
- 25
- 6
0
votes
1 answer
Which is the correct way to configure IpAddress condition in Policy document for REST API?
I'm trying to allow only specific IP addresses to access my API Gateway REST API without success.
I configured the following resource policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
…

Jesús López
- 8,338
- 7
- 40
- 66
0
votes
1 answer
Passing date variable dynamically to the URL in ADF
What I am trying to do:
I am fetching data using REST API in ADF, and want to move the output file via Copy Activity to Blob storage.
I can successfully do that if I pass in the exact URL with date like…

newbie
- 53
- 10
0
votes
1 answer
is ok to choose AWS HTTP API gateway for a mobile application?
I am trying to decide which aws apigateway version choose for my application (HTTP vs REST API gateway).
I am experimenting with AWS HTTP API gateway to see if it works fine for my use case.
These are my requirements:
The only client is a mobile…

user3849960
- 120
- 2
- 11
0
votes
1 answer
How to set up API keys using aws-cdk python
I need to add an API Key to API Gateway for a proxy resource.
Right now my code adds the requirement for both the proxy and the options resource.
How can I specify the requirement only for the proxy?
I managed to do it through the console but it…
0
votes
1 answer
AWS Cloudfront for S3 backed website + Rest API: (Error - MethodNotAllowed / The specified method is not allowed against this resource)
I have an AWS S3 backed static website and a RestApi. I am configuring a single Cloudfront Distribution for the static website and the RestApi. I have OriginConfigs done for the S3 origins and the RestApi origin. I am using AWS CDK to define the…

vvg
- 1,010
- 7
- 25
0
votes
1 answer
Aws Marketplace ResolveCustomer action fails with com.amazon.coral.service#UnknownOperationException when called
I have been trying to do the Aws resolve customer via API, But I get Unknown operation exception.
Service NAme is: aws-amrketplace
Below is the screenshot
enter image description here

Punith Shetty
- 1
- 1
0
votes
0 answers
How can I use an endpoint policy to restrict the traffic going from a internal network to access a private APIs?
I've read from
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-vpc-endpoint-policies.html
You can use an endpoint policy to restrict the traffic going from your internal network to access your private APIs.
What exactly…

Judy007
- 5,484
- 4
- 46
- 68