Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
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 2,773 weekly downloads. As such, serverless-apigateway-service-proxy popularity was classified as popular.
We found that serverless-apigateway-service-proxy demonstrated a not healthy version release cadence and project activity because the last version was released 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.