## Edition #188
Welcome to issue #188 of the Amazon Web Services open source newsletter, the newsletter where we try and provide you the best open source on Amazon Web Services content.
As always, this week we start with a round up of some freshly baked new projects for you to practice your four freedoms. This week we have freshly cut repos that help you migrate your DNS configurations, improve your prompts when working with large language models, a new lightweight Javascript runtime, some reference code that shows you how you can deploy modern Java applications a number of different ways, and sample repos that show you how you can do remote debugging in [Amazon EMR](https://aws.amazon.com/cn/emr/?trk=cndc-detail), as well as the usual cool demos that showcase some of the ways you can use generative AI.
If that was not enough to satiate your open source needs, then why not dive into some of the posts we share this week, which include open source projects such as Cedar, [Amazon EMR](https://aws.amazon.com/cn/emr/?trk=cndc-detail), Spring Boot, Apache Zeppelin, Steampipe, ROS, Kubernetes, Apache Airflow, Prometheus, Grafana, Quarkus, Open Telemtry, Backstage, Amazon CDK, MySQL, Redis, Amazon ParallelCluster, OpenZFS, Karpenter, and GraphQL.
Make sure you stick to the very end and check out the Events section at the end - and if you are running an open source event and want me to include it for broader visibility, please drop me a message at ricsue at amazon dot com.
**Feedback**
Please please please take 1 minute to [complete this short survey](https://www.pulse.aws/promotion/10NT4XZQ?trk=cndc-detail).
### Celebrating open source contributors
The articles and projects shared in this newsletter are only possible thanks to the many contributors in open source. I would like to shout out and thank those folks who really do power open source and enable us all to learn and build on top of what they have created.
So thank you to the following open source heroes: Vincent Mercier, Dennis Kieselhorst, Yoanna Krasteva, Gianluigi Mucciolo, Bob Tordella, Mike Likes Robots, Benjamen Pyle, Hein Htet Win, Jeroen Reijn, Michael Hausenblas, Michael Hicks, Damon Cortesi, Alexandre Magno Lima Martins, Riccardo Freschi, Adam Keller, Elamaran Shanmugam, Ratnopam Chakrabarti, Bhavye Sharma, Benjamin Hodgens, Tom McDonald, Chelluru V N S S Vidyadhar, Steve Abraham, Abhay Saxena, Roberto Meda and William Lu.
### Latest open source projects
*The great thing about open source projects is that you can review the source code. If you like the look of these projects, make sure you that take a look at the code, and if it is useful to you, get in touch with the maintainer to provide feedback, suggestions or even submit a contribution. The projects mentioned here do not represent any formal recommendation or endorsement, I am just sharing for greater awareness as I think they look useful and interesting!*
### Tools
**llrt**
[llrt](https://aws-oss.beachgeek.co.uk/3mm?trk=cndc-detail) - Low Latency Runtime (LLRT) is a lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications. LLRT offers up to over 10x faster startup and up to 2x overall lower cost compared to other JavaScript runtimes running on Amazon Lambda. It's is built in Rust, utilising QuickJS as JavaScript engine, ensuring efficient memory usage and swift startup.
![image.png](https://dev-media.amazoncloud.cn/76c0bc5c2d1241d78c3d7f82acc00846_image.png "image.png")
**promptus**
[promptus](https://aws-oss.beachgeek.co.uk/3mu?trk=cndc-detail) Prompt engineering is key for generating high-quality AI content. But crafting effective prompts can be time-consuming and difficult. That's why Promptus was built. Promptus allows you to easily create, iterate, and organise prompts for generative AI models. With Promptus, you can:
* Quickly build prompts with an intuitive interface
* Automatically version and compare prompt iterations to optimise quality
* Organize prompts into projects and share with teammates
* See a history of your prompt and easily go back to any previous prompt execution
Whether you're an AI researcher, content creator, or business leader, Promptus gives you the power to unlock generative AI's full potential.
![image.png](https://dev-media.amazoncloud.cn/cf642f856e3a4866b8d341c78212d128_image.png "image.png")
**prometheus-rds-exporter**
[prometheus-rds-exporter](https://aws-oss.beachgeek.co.uk/3mx?trk=cndc-detail) is a project from Vincent Mercier that provides a Prometheus exporter for [Amazon RDS](https://aws.amazon.com/cn/rds/?trk=cndc-detail). Check out the README, it is very detailed and well put together. It provides a lot of information on how they built this, examples of configurations as well as detailed configuration options. This looks very cool indeed, so nice work Vincent!
**bedrock-vscode-playground**
[bedrock-vscode-playground](https://aws-oss.beachgeek.co.uk/3nb?trk=cndc-detail) is a Visual Studio Code (VS Code) extension which allows developers to easily explore and experiment with large language models (LLMs) available in [Amazon Bedrock](https://aws.amazon.com/cn/bedrock/?trk=cndc-detail). Check out the README for details of what you can do with it and how you can configure it to work with your specific setup.
**route53-hostedzone-migrator**
[route53-hostedzone-migrator](https://aws-oss.beachgeek.co.uk/3nc?trk=cndc-detail) is a handy script will help you to automate the migration of an [Amazon Route 53](https://aws.amazon.com/cn/route53/?trk=cndc-detail) hosted zone from an Amazon Web Services account to another one. It will follow all the needed steps published in the official [Amazon Route 53](https://aws.amazon.com/cn/route53/?trk=cndc-detail) documentation regarding the migration of a hosted zone.
**pinecone-db-construct**
[pinecone-db-construct](https://aws-oss.beachgeek.co.uk/3mn?trk=cndc-detail) The Pinecone DB Construct for Amazon CDK is a JSII-constructed library that simplifies the creation and management of Pinecone indexes in your Amazon Web Services infrastructure. It allows you to define, configure, and orchestrate your vector database resources alongside your Amazon Web Services resources within your CDK application. The maintainer has shared some of the noteworthy features, which include:
* Handles CRUDs for both Pod and Serverless Spec indexes
* Deploy multiple indexes at the same time with isolated state management
* Adheres to Amazon Web Services-defined removal policies (DESTROY, SNAPSHOT, etc.)
* Creates stack-scoped index names, to avoid name collisions
This is still in beta, so if you do try this out, please provide feedback to the maintainer.
**cedar-antlr-grammar**
[cedar-antlr-grammar](https://aws-oss.beachgeek.co.uk/3n0?trk=cndc-detail) - ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. It's widely used to build languages, tools, and frameworks. From a grammar, ANTLR generates a parser that can build and walk parse trees. Amazon Web Services Hero Ian Mckay has created one for Cedar.
**remote-debugging-with-emr**
[remote-debugging-with-emr](https://aws-oss.beachgeek.co.uk/3ne?trk=cndc-detail) is a Python-based CDK stack that deploys an EC2 bastion host and EMR Serverless and EMR on EKS environments configured for remote debugging. Damon Cortesi takes a break from stacking/chopping logs to show you how to use this project that he wrote, using PyCharm with EMR on EKS and EMR Serverless to interactively debug your Spark applications.
https://youtu.be/RhvuDeKvan8?trk=cndc-detail
### Demos, Samples, Solutions and Workshops
**bedrust**
[bedrust](https://aws-oss.beachgeek.co.uk/3n1?trk=cndc-detail) is a demo repo from my colleague Darko Mesaros that shows you how you can use [Amazon Bedrock](https://aws.amazon.com/cn/bedrock/?trk=cndc-detail) in your Rust code, and allows you to currently choose between Claude V2, Llama2 70B, and Cohere Command.
![image.png](https://dev-media.amazoncloud.cn/216eec4b51df48a9a81b1c9e114cfb7c_image.png "image.png")
**serverless-java-container**
[serverless-java-container](https://aws-oss.beachgeek.co.uk/3my?trk=cndc-detail) this repo provides a Java wrapper to run Spring, Spring Boot, Jersey, and other apps inside Amazon Lambda. Serverless Java Container natively supports API Gateway's proxy integration models for requests and responses, you can create and inject custom models for methods that use custom mappings. Check out the supporting blog post from Dennis Kieselhorst, [Re-platforming Java applications using the updated Amazon Web Services Serverless Java Container](https://aws-oss.beachgeek.co.uk/3mz?trk=cndc-detail). Very nice project!
**amazon-bedrock-voice-conversation**
[amazon-bedrock-voice-conversation](https://aws-oss.beachgeek.co.uk/3nd?trk=cndc-detail) This repository provides a sample implementation of using [Amazon Bedrock](https://aws.amazon.com/cn/bedrock/?trk=cndc-detail) and other supporting Amazon services to have a voice conversation with a Foundational AI model. The code demonstrates how to build an application with GenAI that supports natural back-and-forth voice conversations. This code serves as an example implementation for developers to reference when building voice-enabled applications powered by Foundational AI through [Amazon Bedrock](https://aws.amazon.com/cn/bedrock/?trk=cndc-detail) and related Amazon services.
![image.png](https://dev-media.amazoncloud.cn/7f131a0983d342d693b48aae838b8163_image.png "image.png")
**fargate-on-demand**
[fargate-on-demand](https://aws-oss.beachgeek.co.uk/3mv?trk=cndc-detail) this repo provides the code that shows you how you can cost optimise your container applications and then control scale down (or up) as needed. Yoanna Krasteva has put together a blog post that provides you with why and how you can configure this in the post, [Cost saving with Amazon Fargate On-Demand](https://aws-oss.beachgeek.co.uk/3mw?trk=cndc-detail).
![image.png](https://dev-media.amazoncloud.cn/88a39367e8fd4a1cad1ce2adc84f4d28_image.png "image.png")
### Amazon Web Services and Community blog posts
Each week I spent a lot of time reading posts from across the Amazon Web Services community on open source topics. In this section I share what personally caught my eye and interest, and I hope that many of you will also find them interesting.
**The best from around the Community**
I am not sure what the Community has been imbuing, but please share some with me, as there was some really top notch stuff produced last week,. To start this weeks choice selection, let's hear from Amazon Web Services Community Builder Gianluigi Mucciolo who has written about Apache Zeppelin, an open source project that provides a web-based notebook that enables data-driven, interactive data analytics and collaborative documents with Python, Scala, SQL, Spark, and more. In [Serverless Apache Zeppelin on Amazon Web Services](https://aws-oss.beachgeek.co.uk/3mo?trk=cndc-detail) Gianluigi walks you through a hands on guide on how to build a serverless infrastructure to run Apache Zeppelin and persist notebook files. Very nice post, so make sure you check it out. A name who should be familiar with regular readers of this newsletter, is Bob Tordella, who has been raising awareness and talking about Steampipe and how it can help you query hundreds of your Amazon Web Services resource types from your Amazon Web Services accounts using SQL. In [How to run an Amazon Web Services CIS v3.0 assessment in CloudShell](https://aws-oss.beachgeek.co.uk/3mp) he does exactly what he says he will do, and shows you how you can run the latest AWS CIS benchmark (v3.0 in case you were curious) in [AWS CloudShell](https://aws.amazon.com/cn/cloudshell/?trk=cndc-detail). Check this out if you were not familiar with Steampipe, I think you will like. From Steampip to Steampunk, ok well maybe not quite but it's close enough. Mike Likes Robots is back again with more ROS content, in his post [ROS Control with the JetBot Part 1: Using I2C to control PWM](https://aws-oss.beachgeek.co.uk/3mq). Alexandre Magno Lima Martins has put together a great post that shares his experiences of running Apache Airflow in production on self managed, [Amazon EKS](https://aws.amazon.com/cn/eks/?trk=cndc-detail). I learned some interesting things in this post, so rather than spoil it for you, why not dive right into [What we learned after running Airflow on Kubernetes for 2 years](https://aws-oss.beachgeek.co.uk/3n2).
<!--EndFragment-->
![image.png](https://dev-media.amazoncloud.cn/8bbc8f27746f482f94c18f23685bc6ce_image.png "image.png")
One of the surprises from my time at Fosdem last week was the energy and interest in all things Observability, so it was good to see Amazon Web Services Community Builder Benjamen Pyle put digital pen to digital papyrus in [Open Telemetry and Lambda](https://aws-oss.beachgeek.co.uk/3mr?trk=cndc-detail) where he provides an opinionated look at this topic, providing some good introduction material before diving into things. Check out the comments too. On a related note, Hein Htet Win has put together [Monitoring your Amazon EKS Cluster with Managed Prometheus in Amazon Web Services](https://aws-oss.beachgeek.co.uk/3ms?trk=cndc-detail) who shoes you how you can monitor your [Amazon EKS](https://aws.amazon.com/cn/eks/?trk=cndc-detail) cluster metrics in an agentless way. To conclude this weeks round up, we go to Amazon Web Services Community Builder Jeroen Reijn has written [Analyze and debug Quarkus based Amaozn Lambda functions with X-Ray](https://aws-oss.beachgeek.co.uk/3mt?trk=cndc-detail) who takes you on an adventure on how Quarkus integrates with Amazon X-Ray and how using a Jakarta CDI Interceptor can keep your code clean while adding custom instrumentation.
> **Do not miss this!** If you were not aware, my colleague Michael Hausenblas does a weekly newsletter on all things observability related. Make sure you subscribe to keep up with the excellent stuff he shares and writes about. You can find it at [https://o11y.news/?trk=cndc-detail](https://aws-oss.beachgeek.co.uk/99?trk=cndc-detail)
*(Note! I apologies if some of the words used are out of kilter to normal, I was listening to Janis Joplin and enjoying it a bit too much I think!)*
**Backstage**
Riccardo Freschi shares with you how to install and configure the Backstage add-on for [Amazon EKS](https://aws.amazon.com/cn/eks/?trk=cndc-detail) Blueprints in his post, [Building Developer Portals with Backstage and Amazon EKS Blueprints](https://aws-oss.beachgeek.co.uk/3n3?trk=cndc-detail). Backstage is an open source developer portal that has become very popular, and this post will give you a good start in how you can install and configure it for your needs.
![image.png](https://dev-media.amazoncloud.cn/1d83255c1a2141c0a6dd593687ffecf9_image.png "image.png")
**Amazon Cloud Development Kit (CDK)**
Big news last week for folks who have been using Amazon CDK, with the general availability of CDK Migrate, a component of the Amzon Cloud Development Kit (CDK). This feature enables users to migrate Amazon CloudFormation templates, previously deployed CloudFormation stacks, or resources created outside of Infrastructure as Code (IaC) into a CDK application. You can dive deeper into this by checking out the post from Adam Keller, [Announcing CDK Migrate: A single command to migrate to the Amazon CDK](https://aws-oss.beachgeek.co.uk/3n4?trk=cndc-detail).
**Other posts and quick reads**
* [Introducing multi-source replication on Amazon RDS for MySQL](https://aws-oss.beachgeek.co.uk/3n7?trk=cndc-detail) looks at multi-source replication on [Amazon RDS](https://aws.amazon.com/cn/rds/?trk=cndc-detail) for MySQL, its use cases, configuration best practices, and a walkthrough of an example use case \[hands on]
* [Unlock on-demand, cost-optimized performance with Amazon ElastiCache Serverless](https://aws-oss.beachgeek.co.uk/3n9?trk=cndc-detail) helps you understand how to estimate ElastiCache Serverless for Redis costs in this new pay-per-use pricing model, and how to compare them to running workloads on alternative options
* [Configure Amazon EKS for environmental sustainability](https://aws-oss.beachgeek.co.uk/3n8?trk=cndc-detail) provides guidance on how to configure [Amazon Elastic Kubernetes Service](https://aws.amazon.com/cn/eks/?trk=cndc-detail) ([Amazon EKS](https://aws.amazon.com/cn/eks/?trk=cndc-detail)) for environmental sustainability, through the lens of the Sustainability Pillar of the Amazon Well-Architected Framework
* [Observing Kubernetes workloads on Amazon Fargate with Amazon managed open-source services](https://aws-oss.beachgeek.co.uk/3n5?trk=cndc-detail) explores leveraging the [Amazon CDK Observability Accelerator](https://aws-oss.beachgeek.co.uk/31y)to build observability quickly for monitoring [Amazon EKS](https://aws.amazon.com/cn/eks/?trk=cndc-detail) on Amazon Fargate with Amazon Web Services-managed open-source services \[hands on]
![image.png](https://dev-media.amazoncloud.cn/d19794e7b717435e9aeb26831cc580b4_image.png "image.png")
* [Improve application resiliency and performance with Multi-AZ Amazon FSx for OpenZFS](https://aws-oss.beachgeek.co.uk/3n6?trk=cndc-detail) demonstrates how you can increase their durability and availability using [Amazon FSx for OpenZFS](https://aws.amazon.com/cn/fsx/openzfs/?trk=cndc-detail), all without any application modification \[hands on]
* [Dynamic HPC budget control using a core-limit approach with Amazon ParallelCluster](https://aws-oss.beachgeek.co.uk/3na?trk=cndc-detail) outlines a solution for managing your budget using a dynamic Amazon Elastic Compute Cloud (Amazon EC2) core allocation limit for each group asking for HPC resources \[hands on]
### Quick updates
**Karpenter**
Starting with release of v0.34.0, [Amazon Elastic Kubernetes Service](https://aws.amazon.com/cn/eks/?trk=cndc-detail) (EKS) customers using the open-source Karpenter project have a new way to control how and when disruptive changes are made to the [Amazon EC2 ](https://aws.amazon.com/cn/ec2/?trk=cndc-detail)instances in their Kubernetes clusters. You can use Karpenter with EKS to help improve application availability, lower operational overhead, and increase cost-efficiency. Disruption controls offer deeper configuration for the automatic EC2 instance management capabilities of Karpenter so that you can fine-tune them for your specific needs and use cases.
Disruption controls give you more control over how Karpenter terminates EC2 instances to improve the balance between cost-efficiency, security, and application availability. In Karpenter’s NodePool configuration, you can now set disruption budgets for the EC2 instances provisioned by Karpenter, either as a percent or absolute value, to limit the impact to your application availability. These budgets can also be scheduled to only apply at certain times of the day, days of the week, or all the time so that you can further limit changes during critical business periods.
**GraphQL**
Amazon AppSync is a managed service that connects applications to data. With AppSync, API developers can write resolvers and functions in JavaScript to define the business logic that connects their AppSync GraphQL and Pub/Sub APIs to data. AppSync now allows developers to define environment variables for their GraphQL API, making it easier to configure their code’s behaviour without having to change their resolver or function implementation. Developers can define key-value pairs on their GraphQL API at configuration time, and access them in their resolvers and functions at runtime when resolving GraphQL requests. Environment variables are available in JavaScript and VTL code. Developers can define environment variables on GraphQL APIs at creation time or in an update from the Amazon AppSync console or with Amazon CloudFormation, Amazon Cloud Development Kit (CDK), the Amazon CLI and the Amazon SDKs.
### Videos of the week
**Cedar: A language for expressing fast, safe, and fine-grained authorization policies**
Michael Hicks presents this tutorial on Cedar, a new authorisation policy language developed as the core of Amazon Web Services’s recently released [Amazon Verified Permissions](https://aws.amazon.com/cn/verified-permissions/?trk=cndc-detail) (AVP) service. Cedar policies are used to express fine-grained permissions on behalf of applications. Cedar was designed to be ergonomic, fast, safe, and analysable. Cedar’s simple and intuitive syntax supports common authorisation use-cases with easy-to-understand policies. Cedar’s policy structure ensures that access requests can be authorised quickly. Cedar is built using a high-assurance process we call verification-guided development. Its authorisation engine and validator are formally modelled in the Dafny programming language. Cedar’s core development team proves safety and security properties about those models in Dafny, and runs millions of automated differential tests to check that the implementations of the Cedar authorisation engine and validator, written in Rust, agree with the Dafny models
https://youtu.be/ttgfEun1NAM?trk=cndc-detail
### Events for your diary
If you are planning any events in 2024, either virtual, in person, or hybrid, get in touch as I would love to share details of your event with readers.
I recently found this GitHub repo, [open-source-events](https://aws-oss.beachgeek.co.uk/3jt?trk=cndc-detail) that is a curated set of open source events for 2024. Go check it out and see what 2024 is looking like.
**nor(DEV): Con**\
**Feb 15-16th, Kings Centre, Norwich**
I will be speaking at nor(DEV):Con in Norwich, doing two talks. One will be on Apache Airflow (an entry level session, that is perfect if you have no clue about what Airflow is or does, but have heard a lot about it and want to take the first steps), and Cedar, an open source domain specific language that helps developers address the tricky subject of authorisation in their applications, allowing them to have a clean separation from business and authorisation logic.
Find out more about the event, the other sessions, at the event site, [nordevcon.com](https://aws-oss.beachgeek.co.uk/3ml?trk=cndc-detail)
**Cortex**\
**Every other Thursday, next one 16th February**
The Cortex community call happens every two weeks on Thursday, alternating at 1200 UTC and 1700 UTC. You can check out the GitHub project for more details, go to the [Community Meetings](https://aws-oss.beachgeek.co.uk/2h5?trk=cndc-detail) section. The community calls keep a rolling doc of previous meetings, so you can catch up on the previous discussions. Check the [Cortex Community Meetings Notes](https://aws-oss.beachgeek.co.uk/2h6?trk=cndc-detail) for more info.
**OpenSearch**\
**Every other Tuesday, 3pm GMT**
This regular meet-up is for anyone interested in OpenSearch & Open Distro. All skill levels are welcome and they cover and welcome talks on topics including: search, logging, log analytics, and data visualisation.
Sign up to the next session, [OpenSearch Community Meeting](https://aws-oss.beachgeek.co.uk/1az?trk=cndc-detail)
### Stay in touch with open source at Amazon Web Services
Remember to check out the [Open Source homepage](https://aws.amazon.com/opensource/?opensource-all.sort-by=item.additionalFields.startDate\\&opensource-all.sort-order=asc&trk=cndc-detail) for more open source goodness.
One of the pieces of feedback I received in 2023 was to create a repo where all the projects featured in this newsletter are listed. Where I can hear you all ask? Well as you ask so nicely, you can meander over to[ newsletter-oss-projects](https://aws-oss.beachgeek.co.uk/3l8?trk=cndc-detail).
Made with ♥ from DevRel