
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
serverless-apigateway-service-proxy
Advanced tools
The Serverless Framewrok plugin for supporting AWS service proxy integration of API Gateway
This Serverless Framewrok plugin supports the AWS service proxy integration feature of API Gateway. You can directly connect API Gateway to AWS services without Lambda.
Run npm install
in your Serverless project.
$ npm install --save-dev serverless-apigateway-service-proxy
Add the plugin to your serverless.yml file
plugins:
- serverless-apigateway-service-proxy
Here is a services list which this plugin supports for now. But will expand to other services in the feature. Please pull request if you are intersted in it.
Define settings of the AWS services you want to integrate under custom > apiGatewayServiceProxy
and run serverless deploy
.
Here is syntax for Kinesis proxy in serverless.yml.
custom:
apiGatewayServiceProxy:
- kinesis:
path: /kinesis
method: post
streamName: { Ref: 'YourStream' }
cors: true
resources:
Resources:
YourStream:
Type: AWS::Kinesis::Stream
Properties:
ShardCount: 1
Here is a sample request after deploying.
curl -XPOST https://xxxxxxx.execute-api.us-east-1.amazonaws.com/dev/kinesis -d '{"Data": "some data","PartitionKey": "some key"}' -H 'Content-Type:application/json'
Here is syntax for SQS proxy in serverless.yml.
custom:
apiGatewayServiceProxy:
- sqs:
path: /sqs
method: post
queueName: {"Fn::GetAtt":[ "SQSQueue", "QueueName" ]}
cors: true
resources:
Resources:
SQSQueue:
Type: "AWS::SQS::Queue"
Here is a sample request after deploying.
curl -XPOST https://xxxxxx.execute-api.us-east-1.amazonaws.com/dev/sqs -d '{"message": "testtest"}' -H 'Content-Type:application/json'
FAQs
The Serverless Framework plugin for supporting AWS service proxy integration of API Gateway
The npm package serverless-apigateway-service-proxy receives a total of 7,795 weekly downloads. As such, serverless-apigateway-service-proxy popularity was classified as popular.
We found that serverless-apigateway-service-proxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.