Welcome to #163 of the Amazon Web Services open source newsletter. As always, we search high and low for the best and latest open source content, and I think you will love what we have lined up this week. This weeks featured projects include a Cedar authorisation service and demo examples, a tool to help you find dangling DNS records, a new CLI for those using Amazon ECR, an accelerator for observability on Amazon Web Services, a serverless web analytics solution (so good, that I implemented it myself), and several more projects.
Also featured is content on Redis, ActiveMQ, OpenSearch, Amazon SAM, Kubernetes, Apache Flink, Amazon Linux, Spring, Amazon CDK, Amazon Amplify, Steampipe, and Amazon Lambda Powertools. Head over to the Videos section to check out a link for last weeks Build on Live open source and AI, and finally check out events that are coming up and put them in your diary.
Also, be sure to check out the events section as there are a few events happening this week.
###### Feedback
Before you dive in however, I need your help! Please please please take 1 minute to [complete this short survey](https://pulse.buildon.aws/survey/PJRTOUMK?trk=cndc-detail) and you will forever have my gratitude!
### **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: Ran Isenberg, Bob Tordella, Spot, Mo Malaka, Vacha Shah, Benoit Tellier, Suraj Narwade, Rehan van der Merwe, Aniruddha Biyanithat, Daniel Aniszkiewicz, Jared Evans, Chris Fregly and Antje Barth.
### **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.
###### **Tools**
###### **cedar-authorization-service**
[cedar-authorization-service](https://github.com/Pigius/cedar-authorization-service/tree/main?trk=cndc-detail) is a lightweight, standalone server developed in Rust that is designed to evaluate and enforce access control policies written in Cedar, an open-source policy language developed by Amazon Web Services. Creator Daniel Aniszkiewicz adds that whilst there is an official Cedar playground, this is a view-only mode for the Rust code, which means you can't edit the Rust code there. This project provides a playground where you can play around with both the Cedar policies and the Rust code. Check out Daniels blog post, the second in the series, [Authorization and Cedar: A New Way to Manage Permissions - Part II](https://dev.to/aws-builders/authorization-and-cedar-a-new-way-to-manage-permissions-part-ii-2bgb?trk=cndc-detail) that looks at how you might use Cedar in a typical e-commerce use case.
###### **findmytakeover**
[findmytakeover](https://github.com/anirudhbiyani/findmytakeover?trk=cndc-detail) is a tool from Aniruddha Biyanithat detects dangling DNS record in you cloud environment. It does this by scanning all the DNS zones and the infrastructure present within the configured cloud service provider either in a single account or multiple accounts and finding the DNS record for which the infrastructure behind it does not exist anymore rather than using wordlist. It can easily detect and report potential subdomain takeovers that exist. Make sure you check out the project README for full details, including limitations.
###### **cdk-Amazon Web Services-observability-accelerator**
[cdk-Amazon Web Services-observability-accelerator](https://github.com/aws-observability/cdk-aws-observability-accelerator?trk=cndc-detail) is a set of opinionated modules to help you set up observability for your Amazon Web Services environments with Amazon Web Services Native services and Amazon Web Services-managed observability services such as [Amazon Managed Service for Prometheus](https://aws.amazon.com/cn/prometheus/?trk=cndc-detail),[Amazon Managed Grafana](https://aws.amazon.com/cn/grafana/?trk=cndc-detail), Amazon Web Services Distro for OpenTelemetry (ADOT) and [Amazon CloudWatch](https://aws.amazon.com/cn/cloudwatch/?trk=cndc-detail). It provides curated metrics, logs, traces collection, cloudwatch dashboard, alerting rules and Grafana dashboards for your EKS infrastructure, Java/JMX, NGINX based workloads and your custom applications.
![CDK_Architecture_diagram.png](https://dev-media.amazoncloud.cn/8aebc86910e2431f85b5f95295e4720c_CDK_Architecture_diagram.png "CDK_Architecture_diagram.png")
###### **ecrctl**
[ecrctl](https://github.com/surajincloud/ecrctl?trk=cndc-detail) is the latest project from Amazon Web Services Community Builder Suraj Narwade, and one that I think I will most certainly be using a lot. Taking inspiration from kubectl, ecrctl provides a CLI tool for working with [Amazon Elastic Container Registry ](https://aws.amazon.com/cn/ecr/?trk=cndc-detail)(ECR). I guess the only remaining question is how exactly should you pronounce this tool!
###### **serverless-website-analytics**
[serverless-website-analytics](https://github.com/rehanvdm/serverless-website-analytics?trk=cndc-detail) is a fantastic project from Amazon Web Services Hero Rehan van der Merwe that provides a very feature rich click stream analytics solution that you can easily integrate into your projects. I was so impressed I decided to ditch what I was using and switch over to this project, so the Amazon Web Services open source newsletter is now getting its clickstream data using this tool. I put together a quick blog post, [Deploying a serverless web analytics solution for your websites ](https://blog.beachgeek.co.uk/deploying-open-source-clickstream-analytics/?trk=cndc-detail)to share my setup, but Rehan has put together detailed docs on how you can configure and tailor this to your own needs.
###### **cloud-seed**
[cloud-seed](https://github.com/jbg/cloud-seed?trk=cndc-detail) is a very minimal alternative to cloud-init. If you are not familiar with [cloud-init](https://cloudinit.readthedocs.io/en/latest/reference/datasources/ec2.html?trk=cndc-detail), it is an open source package that bootstraps Linux images in a cloud computing environment. cloud-seed exists because it is often necessary to provide some "seed" data to an otherwise-ready-to-run image: some values should not be baked into the image due to them varying from server to server. It can set the hostname and write files based on directives provided in user data. The doc provides additional information as to what you can define.
###### **OpenAPI-Amazon Web Services-Decorator**
[OpenAPI-Amazon Web Services-Decorator](https://github.com/JaredCE/OpenAPI-AWS-Decorator?trk=cndc-detail) this tool from Jared Evans will decorate an Open API v3 document with specific x-amazon- OpenAPI syntax. The README provides a useful example of how you can get started with this tool.
### **Demos, Samples, Solutions and Workshops**
###### **data-science-on-Amazon Web Services**
[data-science-on-Amazon Web Services](https://github.com/aws-samples/data-science-on-aws?trk=cndc-detail) this workshop shows Amazon Web Services users how to use [Amazon SageMaker](https://aws.amazon.com/cn/sagemaker/?trk=cndc-detail) and other associated services to build, train, and deploy generative AI models. These labs go through data science topics such as data processing at scale, model fine-tuning, real-time model deployment, and MLOps practices all through a generative AI lens. This workshop is based on the O'Reilly Book, "Data Science on Amazon Web Services", from my colleagues Chris Fregly and Antje Barth. Essential reading, so if you are looking for a book recommendation or something to add to your wish list, this might be the one!
![book_full_color_sm.jpg](https://dev-media.amazoncloud.cn/44f123b0bd774686a1c069e6bf9215c5_book_full_color_sm.jpg "book_full_color_sm.jpg")
###### **llm-hosting-container**
[llm-hosting-container](https://github.com/awslabs/llm-hosting-container?trk=cndc-detail) This repository contains Dockerfile and associated resources for building and hosting containers for large language models, specifically the HuggingFace Text Generation Inference (TGI) container. Watch this repo to keep up to date as others are added.
###### **llm-apps-workshop**
[llm-apps-workshop](https://github.com/aws-samples/llm-apps-workshop?trk=cndc-detail) this repository provides the source code for Large Language Model (LLM) based applications that include inference, generating embeddings, question answer (zero-shot and few-shot learning, prompt engineering), retrieval augmented generation (RAG) and domain adapted fine-tuning. The repo links to a walk through blog post to help guide you through this.
###### **Introduction to Terraform on Amazon Web Services**
[Introduction to Terraform on Amazon Web Services](https://catalog.us-east-1.prod.workshops.aws/workshops/41c5a1b6-bd3e-41f4-bd46-85ab7dc6dad4/en-US?trk=cndc-detail) this is a new workshop that will help you gain hands-on experience in creating and managing Amazon Web Services resources using Terraform and leverage Terraform best practices.
### **Amazon Web Services and Community blog posts**
###### **Amazon Lambda Powertools**
Amazon Web Services Hero and regular contributor to this newsletter Ran Isenberg has put together another great post, [Serverless API Idempotency with Amazon Lambda Powertools and CDK](https://www.ranthebuilder.cloud/post/serverless-api-idempotency-with-aws-lambda-powertools-and-cdk?trk=cndc-detail). In this post Ran helps you get to grips idempotency, looking at what it is and why it's essential, using a sample serverless "orders" service to bring it to life. Expect plenty of open source goodness with Amazon CDK, and Amazon Lambda Powertools for Python. Make sure you check this post out. [hands on]
![2e76fb_0e5c02a10f5c4a418732f84b640a5f6a%257Emv2.png](https://dev-media.amazoncloud.cn/d2ae16df91bf4f30a98dc82adbd29dae_2e76fb_0e5c02a10f5c4a418732f84b640a5f6a%25257Emv2.png "2e76fb_0e5c02a10f5c4a418732f84b640a5f6a%257Emv2.png")
###### **Steampipe**
Steampipe is an open source CLI to instantly query cloud APIs using SQL. In [Using Steampipe Relationship Graphs to Navigate Cloud Resources on Amazon Web Services](https://aws.amazon.com/cn/blogs/opensource/using-the-new-relationship-graph-capabilities-in-open-source-steampipe-on-aws/?trk=cndc-detail), Spot and Bob Tordella follow up on previous posts, this time showing you how you can navigate between resources using the new relationship graph capabilities added to Steampipe Amazon Web Services Insights dashboards. [hands on]
![IAM-user.png](https://dev-media.amazoncloud.cn/0caedc080f6c4af8aed96e24fc980dcd_IAM-user.png "IAM-user.png")
###### **Amazon Amplify**
Amazon Amplify is an open source project that lets frontend web and mobile developers easily build, ship, and host full-stack applications on Amazon Web Services. The Amazon Amplify team recently announced a brand new way to recognise and reward the hard work and dedication of our open source community contributors:The Amplify Badge Program. Mo Malaka has put together more details in his post, [New: Introducing the Amazon Amplify Badge Program](https://aws.amazon.com/cn/blogs/mobile/new-introducing-the-amplify-badge-program/?trk=cndc-detail) that looks at what these badges look like and how this will work.
###### **OpenSearch**
Vacha Shah and Benoit Tellier have put together [Improving JSON parsing performance in opensearch-java](https://opensearch.org/blog/opensource-perf/?trk=cndc-detail), that looks at how Benoit and his team at Linagora, contributing to the Apache James project, we able to identify and address a performance issue in the OpenSearch Java client using benchmark tools and flame graphs, in collaboration with the OpenSearch community.
![flame2.png](https://dev-media.amazoncloud.cn/79aa31bf303a45ee91f5a004037f065c_flame2.png "flame2.png")
###### **Other posts and quick reads**
• [Announcing watchOS and tvOS Support on Amazon Amplify Library for Swift](https://aws.amazon.com/cn/blogs/mobile/announcing-watchos-and-tvos-support-on-aws-amplify-library-for-swift/?trk=cndc-detail) is a hands on guide on how to build an app for the iOS, macOS, watchOS, and tvOS platforms using a single Swift project powered by Amplify Library for Swift [hands on]
![Screenshot-2023-06-27-at-2.48.48-PM-1024x623.jpg](https://dev-media.amazoncloud.cn/37e7842c95f44a14b5783f86af3425f3_Screenshot-2023-06-27-at-2.48.48-PM-1024x623.jpg "Screenshot-2023-06-27-at-2.48.48-PM-1024x623.jpg")
• [Deploy a serverless ML inference endpoint of large language models using FastAPI, Amazon Lambda, and Amazon CDK ](https://aws.amazon.com/cn/blogs/machine-learning/deploy-a-serverless-ml-inference-endpoint-of-large-language-models-using-fastapi-aws-lambda-and-aws-cdk/?trk=cndc-detail)shows you how to easily deploy and run serverless ML inference by exposing your ML model as an endpoint using FastAPI, Docker, Lambda, and [Amazon API Gateway](https://aws.amazon.com/cn/api-gateway/?trk=cndc-detail) (and automated using Amazon CDK) [hands on]
• [Approach to migrate Spring Cloud microservices applications to Amazon EKS ](https://aws.amazon.com/cn/blogs/mt/approach-to-migrate-spring-cloud-microservices-applications-to-amazon-eks/?trk=cndc-detail)explains how you can migrate microservices from Spring Cloud to [Amazon EKS](https://aws.amazon.com/cn/eks/?trk=cndc-detail) [hands on]
![MIGMOD-174-EKSArchitecture-scaled.png](https://dev-media.amazoncloud.cn/ba4ded585ea241d6a9625447437c2271_MIGMOD-174-EKSArchitecture-scaled.png "MIGMOD-174-EKSArchitecture-scaled.png")
###### **Case Studies**
• L[ife360’s journey to a multi-cluster Amazon EKS architecture to improve resiliency](https://aws.amazon.com/cn/blogs/containers/life360s-journey-to-a-multi-cluster-amazon-eks-architecture-to-improve-resiliency/?trk=cndc-detail) looks at how Life360 improved our resiliency by implementing a multi-cluster [Amazon EKS](https://aws.amazon.com/cn/eks/?trk=cndc-detail) architecture.
![Availability-Zone.png](https://dev-media.amazoncloud.cn/04c6a002370a463b9c840c0d2063946a_Availability-Zone.png "Availability-Zone.png")
#### **Quick updates**
###### **Apache Flink**
Customers can now use Apache Flink 1.15 with [Amazon Kinesis](https://aws.amazon.com/cn/kinesis/?trk=cndc-detail) Data Analytics Studio to perform ad hoc queries to quickly inspect data streams and build and run stream processing applications in minutes. Kinesis Data Analytics Studio allows you to query data streams in real time, and more easily build and run stream processing applications using standard SQL, Python, and Scala in an interactive notebook. Studio notebooks are powered by Apache Zeppelin and use Apache Flink as the stream processing engine. Studio notebooks seamlessly combine these technologies to make advanced analytics on data streams accessible to developers of all skill sets.
###### **Amazon Linux**
Support for UEFI Secure Boot on Amazon Linux instances is now available. Starting with AL2023.1, customers can now use Secure Boot on Amazon Linux instances to verify the digital signature of all boot components. Secure Boot is a feature of UEFI that builds on EC2’s long-standing secure boot process, and provides additional defense-in-depth that helps customers secure software from threats that persist across reboots. It ensures that EC2 instances run authentic software by verifying the digital signature of all boot components, and halts the boot process if signature verification fails. Starting today, customers who want to use this capability on EC2, can use this capability on Amazon Linux instances. Secure boot is supported on all Amazon Nitro based AL2023 instances with UEFI capability. To get started with secure boot on AL2023 instances see[ the documentation here.](https://docs.aws.amazon.com/linux/al2023/ug/uefi-secure-boot.html?trk=cndc-detail)
###### **Amazon Serverless Application Model (SAM)**
The Amazon Serverless Application Model (SAM) Command Line Interface (CLI) announces the launch of remote invoke command which enables developers to quickly invoke their Amazon Lambda functions deployed to the Amazon cloud. The Amazon SAM CLI is a developer tool that makes it easier to build, test, package, and deploy serverless applications. Customers can now use the SAM CLI to test a Lambda function with a simple command sam remote invoke. This command takes an event payload and Lambda logical id as input to invoke the Lambda function, then outputs the response. It supports multiple invocation modes such as response streaming, asynchronous invoke, dry run and request-response. Previously, customers had to use Amazon Console or Amazon CLI to test their Lambda functions. With this launch, SAM CLI users can use this feature along with sam sync command to speed up the build-deploy-test iteration loop. This feature is available with SAM CLI version 1.88.0+.
###### **ActiveMQ**
[Amazon MQ](https://aws.amazon.com/cn/amazon-mq/?trk=cndc-detail) now supports cross-region data replication for ActiveMQ brokers on [Amazon MQ](https://aws.amazon.com/cn/amazon-mq/?trk=cndc-detail). This feature allows you to build regionally resilient messaging applications using continuous asynchronous message replication from a primary broker to a replica broker in a standby Amazon Web Services region with a few clicks, eliminating the need to use third-party tools or custom code to replicate data between regions. Cross-region data replication enables messages to be replicated across ActiveMQ brokers in different regions with robust monitoring metrics. In case of a regional failure, you can trigger a failover quickly and confidently from the primary to standby region, allowing you to resume operations.
Cross-region data replication pricing consists of cross-region data replication charges, plus broker instance and storage charges for both brokers. Data transfer between the primary Amazon Web Services Region and a secondary Amazon Web Services Region is billed based on the data transfer pricing of the applicable Amazon Web Services Regions.
###### **Redis**
[Amazon MemoryDB for Redis](https://aws.amazon.com/cn/memorydb/?trk=cndc-detail) is now in scope for FedRAMP Moderate in the US East (Ohio), US East (N. Virginia), US West (N. California), and US West (Oregon) Regions. You can now use MemoryDB to build applications for workloads that are subject to FedRAMP Moderate compliance. In addition to achieving FedRAMP Moderate authorization, MemoryDB is also HIPAA eligible, HITRUST, ISO certified, SOC, and PCI DSS compliant.
#### **Videos of the week**
###### **Build on Open Source & AI**
If you missed the latest Build on Live! event last week, fear not. The latest instalment was all about open source and machine learning, with Falcon40 and Hugging Face featured. Check out the [show notes here](https://community.aws/livestreams/build-on-live-events/open-source-and-machine-learning/using-llms-to-chat-to-your-documents?trk=cndc-detail)
YouTube Vedio:https://youtu.be/nI7UaHJbm5Q
###### **Build on Open Source**
For those unfamiliar with this show, Build on Open Source is where we go over this newsletter and then invite special guests to dive deep into their open source project. Expect plenty of code, demos and hopefully laughs. We have put together a playlist so that you can easily access all (sixteen) of the episodes of the Build on Open Source show. B[uild on Open Source playlist.](https://www.twitch.tv/collections/a7OU6drfRxfAag?trk=cndc-detail)
We are currently planning the third series - if you have an open source project you want to talk about, get in touch and we might be able to feature your project in future episodes of Build on Open Source.
### **Events for your diary**
If you are planning any events in 2023, either virtual, in person, or hybrid, get in touch as I would love to share details of your event with readers.
**OpenSearchCon**
**Seattle, September 27-29, 2023**
Registration is now open source OpenSearchCon. Check out this post from Daryll Swager, [Registration for OpenSearchCon 2023 is now open](https://opensearch.org/blog/registration-for-opensearchcon-2023-is-now-open/?trk=cndc-detail)! that provides you with what you can expect, and resources you need to help plan your trip.
**CDK Day, 2023**
**Online, 29th September 2023**
Back for the fourth instalment, this Community led event is a must attend for anyone working with infrastructure as code using the Amazon Cloud Development Kit (CDK). It is intended to provide learning opportunities for all users of the CDK and related libraries. The CFP is open, so if you have some ideas for some talks then make sure you check that section out. Also, this year they are accepting talks in Espanol! Woohoo, love it!
Check more at the website, [CDK Day](https://www.cdkday.com/?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://github.com/cortexproject/cortex#community-meetings?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://docs.google.com/document/d/1shtXSAqp3t7fiC-9uZcKkq3mgwsItAJlH6YW6x1joZo/edit?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://www.meetup.com/OpenSearch/?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/cn/opensource/?opensource-all.sort-by=item.additionalFields.startDate&opensource-all.sort-order=asc&blog-posts-content-open-source.sort-by=item.additionalFields.createdDate&blog-posts-content-open-source.sort-order=desc?trk=cndc-detail) to keep up to date with all our activity in open source by following us on [@Amazon Web ServicesOpen](https://twitter.com/AWSOpen?trk=cndc-detail)