-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use Consul Connect in AWS Lambda? #6540
Comments
Hi @Chcp, there are a couple of solutions to do this. In all the options below I have assumed that you are interested in integrating non lambda based applications and that lambda to lambda calls would use standard ARN routing and security policy. One of the core problems is the Lambda execution model. Lambda is designed to scale as the load on your system increases. All the facets of Lambda such as the recommended data stores you use with it are designed to work with this horizontal scale. In the instance that Lambda needs to connect to a system which is outside of this model the user must handle these requirements. To participate in a Service Mesh a Lambda function needs an identity which is in the form of an x509 certificate issued by the Consul server. While Lambda functions do not immediately scale to 0 after a request has finished the lifecycle is not controllable by the user. Consideration needs to be given that peaks in load on the system will cause new Lambda instances to be created, this will increase the load on the Server signing the identity requests. Custom runtime https://github.com/awslabs/aws-lambda-container-image-converter Advantages: Disadvantages: Go SDK (https://www.consul.io/docs/connect/native.html)[https://www.consul.io/docs/connect/native.html] https://github.com/nicholasjackson/consul-connect-router/blob/master/lambda/main.go Advantages: Disadvantages: Ingress / Egress Gateway https://aws.amazon.com/blogs/compute/announcing-improved-vpc-networking-for-aws-lambda-functions/ Advantages: Disadvantages: |
Hi @nicholasjackson , |
Hey - Thanks! |
Feature Description
Use Consul Connect in AWS Lambda.
Use Case(s)
We have launched a lots of mircoservices in AWS Lambda, we want to add Service Discovery and Service Registry feature in Lambda. Can we use Consul Connect in AWS Lambda, and would you like to give me some examples. Thanks a lot.
The text was updated successfully, but these errors were encountered: