Dan's Blog DevOps and such

Running Your Own AI on Your Local Machine - A Guide

In another article, I talked about utilizing GPT’s API to write a Telegram Chat-Bot. Now, I will write about using an LLM like GPT but on your local machine and for free. You can also use it via a modern ChatGPT-styled Web-UI and give your coworkers access to it.

Read more

Lazygit Tutorial

This is my Lazygit tutorial, which will help you get an overview of the most important features. It will speed up your git workflow and make it easier for you.

Read more

Advanced (CLI) tools for coders & hackers

This article is aimed at the advanced coder/hacker and exclusively includes tools that go far beyond the standards such as “bash”, “nano”, or “git”.

I am writing this text because I repeatedly see users struggling with outdated tools, even though there have been better alternatives available for years. I can only recommend that you remain open-minded and occasionally question your setup in order to stay up to date.

If you’re working a lot with AWS I recommend visiting their AWS Labs repo!

Read more

Write an Ansible dynamic inventory for AWS S3

You may have already read my former article, which describes how to use Terraform together with Ansible.

In this article, I will show you how you can enhance your setup further by writing your own (dynamic) inventory file for S3 buckets in Ansible.

Of course, you can create additional inventories; for instance, for Amazon RDS, the fundamentals remain the same, and the process is quite easy and straightforward as well. In this article, I will be utilizing Ansible Galaxy AWS.

Read more

Harnessing the Power of Terraform and Ansible in Perfect Harmony

Introduction

At the beginning of my AWS journey, I relied on Ansible as my go-to solution for achieving “infrastructure as code” capabilities. It amazed me how Ansible could effortlessly spin up essential AWS resources like EC2 instances, RDS databases, and S3 buckets.

However, as I delved deeper into complex projects, I encountered significant challenges in maintaining and managing dependencies within my Ansible configurations. It became apparent that a more robust and scalable solution was needed, leading me to make a complete transition to terraform, which has served me well for several years.

While terraform provided me with a reliable and powerful provisioning tool, I soon discovered that addressing drift and grappling with HashiCorp Configuration Language complexity posed new hurdles - for example, it can be challenging for developers to become proficient in HCL. Dependence of development teams on infrastructure teams can lead to increased time and financial costs, deviating from the DevOps philosophy due to the persistence of strong silos. Additionally, as my projects expanded, I encountered limitations when attempting to configure changes across multiple AWS services using terraform modules.

Read more