In this video, we continue the tutorials on the Jets Ruby Serverless Framework that adds Ruby support to AWS Lambda. We talk about a Jets concept called extra environments. With one environment variable
JETS_ENV_EXTRA, we can create as many additional instances of environments as we wish. This helps when multiple people are asking to use the development, staging, or uat environment but cannot because it is currently used by someone else or another feature. Usually, you end up having to wait until the environment free. With this Jets concept you can create as many environments as required.
It is also interesting that AWS Lambda pricing is based on a usage, the extra environments pretty much are free. Usually, development environments get much less traffic or requests.
Summary of What We’ll Cover
- Explain JETS_ENV_EXTRA concept
- Provide a demo
To delete the extra environment:
JETS_ENV_EXTRA=2 jets delete
- For an Jets Introduction: Introducing Jets: A Ruby Serverless Framework.
- Also more info at: Jets documentation site.
Jets Tutorial Series
- Jets Tutorial An Introductory CRUD App Part 1
- Jets Tutorial Deploy to AWS Lambda Part 2
- Jets Tutorial Debugging Logs Part 3
- Jets Tutorial Background Jobs Part 4
- Jets Tutorial IAM Policies Part 5
- Jets Tutorial Function Properties Part 6
- Jets Tutorial Extra Environments Part 7
Also, here’s source code from tutorial: tongueroo/jets-tutorial-crud