Managing Multiple Environments with Terraform
Tags: terraform, aws, kubernetes, postgres
Published: 2023-04-15 13:22:04

Get ready for another exciting edition of the [DevOps weekly newsletter](https://www.devopsbulletin.com/)! This week, I’ve got a lot in store for you.

Discover how to improve AWS dead-letter queues, automate multiple AWS environments with Terraform, and explore how Amazon practices continuous deployment. We’ll also explore the dangers of relying on ChatGPT for security guidance and how database sharding works in MySQL and Postgres.

Plus, discover what happens when you leak AWS credentials and explore the ultimate guide to multi-tenancy in Kubernetes. And don’t miss a funny video of the week, highlighting the main reasons people hate Amazon Web Services.

As always, I’ve got some fantastic open-source projects for you to check out, including Tart, a virtualization toolset for building, running, and managing macOS and Linux virtual machines on Apple Silicon, Chroma, an open-source embedding database, and a curated list of awesome PostgreSQL software, libraries, tools, and resources inspired by awesome-mysql. We’ll also look at Timoni, a package manager for Kubernetes powered by CUE and inspired by Helm.

This is one DevOps newsletter you won’t want to miss!

## Tutorials of the week

**👀 “Improving our dead-letter queues” —** This blog post addresses a previous incident where messages placed on a AWS dead-letter queue were lost, and how a better process was implemented — [Read more »](https://dvla.github.io/posts/2023-03-improving-our-dead-letter-queues?utm_source=devopsbulletin&utm_id=newsletter)

**🚀 “Automating multiple environments with Terraform”** — How to manage a central main account for shared infrastructure with a dev, test, and prod account — [Read more »](https://www.buildon.aws/tutorials/automating-multiple-environments-with-terraform?utm_source=devopsbulletin&utm_id=newsletter)

**🔌 “Automating safe, hands-off deployments”** — Strategies for continuously deploying to production while balancing safety and speed — [Read more »](https://aws.amazon.com/builders-library/automating-safe-hands-off-deployments?utm_source=devopsbulletin&utm_id=newsletter)

**🔒 “Please don’t use GPT for Security guidance”** — This is a really bad idea and this is why — [Read more »](https://decodebytes.substack.com/p/please-dont-use-gpt-for-security?utm_source=devopsbulletin&utm_id=newsletter)

**⭐️ “How does database sharding work?”** — How database sharding works on MySQL & Postgres, how to think about implementing your own sharded database, and some useful tools out there that can help — [Read more »](https://planetscale.com/blog/how-does-database-sharding-work?utm_source=devopsbulletin&utm_id=newsletter)

**🔥 “Uptime guarantees — a pragmatic perspective”** — Engineering for 99.5% uptime is more cost-effective than 99.99% for most startups — [Read more »](https://world.hey.com/itzy/uptime-guarantees-a-pragmatic-perspective-736d7ea4?utm_source=devopsbulletin&utm_id=newsletter)

**😵 “What happens when you leak AWS credentials”** — and how AWS minimizes the damage — [Read more »](https://xebia.com/blog/what-happens-when-you-leak-aws-credentials-and-how-aws-minimizes-the-damage/?utm_source=devopsbulletin&utm_id=newsletter)

## Open-source projects of the week

1️⃣ Tart is a virtualization toolset to build, run and manage macOS and Linux virtual machines (VMs) on Apple Silicon — [Learn more »](https://github.com/cirruslabs/tart?utm_source=devopsbulletin&utm_id=newsletter)

2️⃣ Chroma is an open-source embedding database. Fastest way to build Python or JavaScript LLM apps with memory — [Learn more »](https://github.com/chroma-core/chroma?utm_source=devopsbulletin&utm_id=newsletter)

3️⃣ NoiSQL shows how to play sound and music with declarative SQL queries — [Learn more »](https://github.com/ClickHouse/NoiSQL?utm_source=devopsbulletin&utm_id=newsletter)

4️⃣ Timoni is a package manager for Kubernetes, powered by CUE and inspired by Helm — [Learn more »](https://github.com/stefanprodan/timoni?utm_source=devopsbulletin&utm_id=newsletter)

5️⃣ Tabby is a self-hosted AI coding assistant. An open source/on-prem alternative to GitHub Copilot — [Learn more »](https://github.com/TabbyML/tabby?utm_source=devopsbulletin&utm_id=newsletter)

6️⃣ A curated list of awesome PostgreSQL software, libraries, tools and resources, inspired by awesome-mysql — [Learn more »](https://github.com/dhamaniasad/awesome-postgres?utm_source=devopsbulletin&utm_id=newsletter)

## Thread of the week

Full thread [here](https://twitter.com/danielepolencic/status/1645398015736414210).

![thread](https://miro.medium.com/v2/resize:fit:1400/0*TZ_eX5vdyjr_hZ4o.png)

## Memes of the week

![meme](https://miro.medium.com/v2/resize:fit:1400/0*AkKVHEw5ivHrq-AZ.jpeg)

I hope you enjoy this week’s newsletter! Share it with a friend or colleague if you find it helpful, drop me an [email](mailto:mohamed@labouardy.com) or send me a [DM](https://twitter.com/mlabouardy) on Twitter about topics you’d like to hear about in future editions.