<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>The Wombelix Post - GenAI</title><link href="https://dominik.wombacher.cc/" rel="alternate"/><link href="/feeds/tag_genai.atom.xml" rel="self"/><id>https://dominik.wombacher.cc/</id><updated>2025-07-27T00:00:00+02:00</updated><entry><title>DNS management with OpenTofu and some AI assistance</title><link href="https://dominik.wombacher.cc/posts/dns-management-with-opentofu-and-some-ai-assistance.html" rel="alternate"/><published>2025-07-27T00:00:00+02:00</published><updated>2025-07-27T00:00:00+02:00</updated><author><name>Dominik Wombacher</name></author><id>tag:dominik.wombacher.cc,2025-07-27:/posts/dns-management-with-opentofu-and-some-ai-assistance.html</id><summary type="html">&lt;!-- SPDX-FileCopyrightText: 2025 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Today I migrated dozens of DNS records from manual to OpenTofu based management.
My DNS provider allows downloading zone files in BIND format, but other
information like record IDs needed  ... &lt;a class="read-more" href="/posts/dns-management-with-opentofu-and-some-ai-assistance.html"&gt; [read more]&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;!-- SPDX-FileCopyrightText: 2025 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;Today I migrated dozens of DNS records from manual to OpenTofu based management.
My DNS provider allows downloading zone files in BIND format, but other
information like record IDs needed for OpenTofu imports are buried in
the HTML of their web interface.&lt;/p&gt;
&lt;p&gt;Manual migration would have been time-consuming and error-prone.
Perfect opportunity to test AI assistance. I'm not expecting magic, but
to handle the repetitive parsing while I focus on validation and logic.&lt;/p&gt;
&lt;p&gt;I used Google's Gemini Code Assistant for this experiment. Over the
past months I've worked with Amazon Q Developer, GitHub Copilot,
Cursor, and Roo Code with various models.&lt;/p&gt;
&lt;p&gt;The key was, and in my experience always is, to provide specific
context instead of vague requests. I had already built the OpenTofu
modules and project structure to manage Domains and DNS records months ago.
So, I knew exactly what I needed and how things should work. This allowed
me to give precise guidance to the assistant without relying on it to figure
out implementation details.&lt;/p&gt;
&lt;p&gt;I provided the AI with full context: existing record files, OpenTofu
module structure, and clear objectives. I essentially train the coding
assistant on the patterns and conventions of my existing codebase.
This doesn't mean hours of actual training, just a few well-crafted prompts.&lt;/p&gt;
&lt;p&gt;For tasks like this (processing large amounts of data that humans
can barely read, finding patterns, applying logic, and transforming
data into different formats) LLMs are naturally a good fit.&lt;/p&gt;
&lt;p&gt;For converting a BIND zone file, my instruction was:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
Here is the BIND zone file for mycloudoffice.de. I need you to create
a records_mycloudoffice_de.tf file. Please follow the syntax and naming
conventions you see in my existing records_wombacher_cc.tf file, and be
sure to ignore irrelevant records like SOA and RRSIG or CAA that are handled
in a different place and are not in scope now.

&lt;/pre&gt;
&lt;p&gt;Of course, I then pasted the complete BIND zone file content after
this instruction as well. By providing both raw data and a clear example of
desired output, the model understood the pattern, identified relevant
records, and produced properly formatted OpenTofu code. The &amp;quot;Magic&amp;quot; here
is that popular LLMs of course know what DNS records are and how BIND Zone
files are structured. So, they don't need handholding to understand and parse them.&lt;/p&gt;
&lt;p&gt;The next step was generating import commands. To get these resources
into my OpenTofu state without destroying and recreating them, I
needed &lt;code&gt;tofu import&lt;/code&gt; commands for each record. The unique IDs are
somewhere in the HTML code from my DNS provider's web interface.&lt;/p&gt;
&lt;p&gt;My prompt was:&lt;/p&gt;
&lt;pre class="code text literal-block"&gt;
Now, I need you to generate the tofu import commands for the resources
you just created. Here is the raw HTML containing the record IDs. The
command format is &amp;quot;tofu import &amp;lt;resource_address&amp;gt; &amp;lt;domain&amp;gt;:&amp;lt;record_id&amp;gt;&amp;quot;.

&lt;/pre&gt;
&lt;p&gt;Again, I included the full HTML source after this instruction.
A while later, I had a complete list of shell commands ready to
execute. A task that would have involved manually matching dozens of
records to their IDs was done in seconds without errors.&lt;/p&gt;
&lt;p&gt;But this wasn't about blindly accepting AI responses. When we encountered
a URL record type specific to my DNS provider, the AI's first attempt
was based on its general knowledge of resource options. Since none of
my shared examples contained details for this specific URL type, it
made a reasonable but non-functional guess.&lt;/p&gt;
&lt;p&gt;I researched the provider's documentation and fed that back to the
model to get the right syntax. Even then, &lt;code&gt;tofu plan&lt;/code&gt; revealed
subtle drift that required my analysis and guidance to resolve.
But two short iterations later, we had a working solution.&lt;/p&gt;
&lt;p&gt;This collaboration - where AI handles repetitive tasks while I
provide direction and validation - is practical and effective. It's
not about replacing developers but freeing us from repetitive work so
we can focus on architecture and problem-solving.&lt;/p&gt;
&lt;p&gt;As models improve, we stay in the driver's seat, making decisions and
reviewing results. Work quality depends on clear instructions and
critical evaluation of results, not on expecting AI to solve everything
automatically.&lt;/p&gt;
&lt;p&gt;Personally, I never want to go back to do all this manually.
It isn't fun to read through hundreds of lines of BIND zone files
and HTML code to find the right IDs in a weirdly nested div tag.&lt;/p&gt;
&lt;p&gt;If you are interested in the outcome, some of what Gemini came up with
today made it into my
&lt;a class="reference external" href="https://git.sr.ht/~wombelix/domain-mgmt"&gt;OpenTofu based domain management&lt;/a&gt;.&lt;/p&gt;
</content><category term="Code"/><category term="AI"/><category term="GenAI"/><category term="DNS"/><category term="Terraform"/><category term="OpenTofu"/><category term="Automation"/><category term="Gemini"/></entry><entry><title>AWS Certified AI Practitioner</title><link href="https://dominik.wombacher.cc/posts/aws-certified-ai-practitioner.html" rel="alternate"/><published>2024-08-28T00:00:00+02:00</published><updated>2024-08-28T00:00:00+02:00</updated><author><name>Dominik Wombacher</name></author><id>tag:dominik.wombacher.cc,2024-08-28:/posts/aws-certified-ai-practitioner.html</id><summary type="html">&lt;!-- SPDX-FileCopyrightText: 2024 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;I took and passed the brand new
&lt;a class="reference external" href="https://aws.amazon.com/certification/certified-ai-practitioner/"&gt;Amazon Web Services (AWS) Certified AI Practitioner&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20240915110657/https://aws.amazon.com/certification/certified-ai-practitioner/"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2024.09.15-110726/https://aws.amazon.com/certification/certified-ai-practitioner/"&gt;[2]&lt;/a&gt;)
exam this morning!
Pretty cool to be one of the first people certified  ... &lt;a class="read-more" href="/posts/aws-certified-ai-practitioner.html"&gt; [read more]&lt;/a&gt;&lt;/p&gt;</summary><content type="html">&lt;!-- SPDX-FileCopyrightText: 2024 Dominik Wombacher &lt;dominik@wombacher.cc&gt; --&gt;
&lt;!--  --&gt;
&lt;!-- SPDX-License-Identifier: CC-BY-SA-4.0 --&gt;
&lt;p&gt;I took and passed the brand new
&lt;a class="reference external" href="https://aws.amazon.com/certification/certified-ai-practitioner/"&gt;Amazon Web Services (AWS) Certified AI Practitioner&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20240915110657/https://aws.amazon.com/certification/certified-ai-practitioner/"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2024.09.15-110726/https://aws.amazon.com/certification/certified-ai-practitioner/"&gt;[2]&lt;/a&gt;)
exam this morning!
Pretty cool to be one of the first people certified.
I even got this nice Early Adopter Badge :D&lt;/p&gt;
&lt;p&gt;I'm already 6 times AWS Certified (1x Practitioner, 3x Associate, 2x Pro)
but also wanted to gain a better understanding of AI and ML on AWS.
Preparing and taking the AI Practitioner Exam was very valuable for me.
I would do it again and recommend it to others to gain a solid understanding.&lt;/p&gt;
&lt;p&gt;It's a very new Exam, at the time I took it even in Beta state.
The amount of available training content is low.
I used a combination of the official Learning Path available in AWS SkillBuilder
and the Course from Stephane Mareek. That worked out well thanks to previous
AWS Certifications and a lot of practical knowledge as part of my current Role.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Summary&lt;/strong&gt;: Earners of this badge understand AI, ML, and generative AI concepts, methods, and strategies in general and on AWS.
They can determine the correct types of AI/ML technologies to apply to specific use cases and know how to use AI, ML, and
generative AI technologies responsibly. They are familiar with the AWS Global Infrastructure, core AWS services and use
cases, AWS service pricing models, and the AWS shared responsibility model for security and compliance in the AWS Cloud.&lt;/p&gt;
&lt;p&gt;Source &amp;amp; Copyright: &lt;a class="reference external" href="https://www.credly.com"&gt;https://www.credly.com&lt;/a&gt;&lt;/p&gt;
&lt;div class="section" id="skills"&gt;
&lt;h2&gt;Skills&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;AI and ML on AWS - Foundational&lt;/li&gt;
&lt;li&gt;Amazon Web Services&lt;/li&gt;
&lt;li&gt;Artificial Intelligence (AI)&lt;/li&gt;
&lt;li&gt;AWS&lt;/li&gt;
&lt;li&gt;AWS Certification&lt;/li&gt;
&lt;li&gt;AWS Cloud&lt;/li&gt;
&lt;li&gt;Cloud Certification&lt;/li&gt;
&lt;li&gt;Foundation Models&lt;/li&gt;
&lt;li&gt;Generative AI&lt;/li&gt;
&lt;li&gt;Machine Learning (ML)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Source &amp;amp; Copyright: &lt;a class="reference external" href="https://www.credly.com"&gt;https://www.credly.com&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;div class="section" id="certificate"&gt;
&lt;h2&gt;Certificate&lt;/h2&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;Downloads&lt;ul&gt;
&lt;li&gt;&lt;a class="reference external" href="/certificates/AWS_Certified_AI_Practitioner_certificate_Dominik_Wombacher.pdf"&gt;Certificate (ID: 6c5005136e7c420aa9eebfdb2011db7b)&lt;/a&gt; (PDF, 32k)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="/certificates/aws-certified-ai-practitioner.png"&gt;Badge&lt;/a&gt; (PNG, 88K)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="/certificates/aws-certified-ai-practitioner-early-adopter.png"&gt;Badge (Early Adopter)&lt;/a&gt; (PNG, 83K)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Links&lt;ul&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.credly.com/badges/2bbe7190-6e76-4b29-aedd-7e6fc54891ed/public_url"&gt;Credly Badge&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20240915085942/https://www.credly.com/badges/2bbe7190-6e76-4b29-aedd-7e6fc54891ed/public_url"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2024.09.15-085954/https://www.credly.com/badges/2bbe7190-6e76-4b29-aedd-7e6fc54891ed/public_url"&gt;[2]&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;&lt;a class="reference external" href="https://www.credly.com/badges/24d8e1d6-6a8a-4699-ac02-544e5a0b88cc/public_url"&gt;Credly Badge (Early Adopter)&lt;/a&gt;
(Archive: &lt;a class="reference external" href="https://web.archive.org/web/20240915085959/https://www.credly.com/badges/24d8e1d6-6a8a-4699-ac02-544e5a0b88cc/public_url"&gt;[1]&lt;/a&gt;,
&lt;a class="reference external" href="https://archive.today/2024.09.15-090011/https://www.credly.com/badges/24d8e1d6-6a8a-4699-ac02-544e5a0b88cc/public_url"&gt;[2]&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><category term="Certification"/><category term="AWS"/><category term="Amazon"/><category term="Cloud"/><category term="AI"/><category term="ML"/><category term="GenAI"/><category term="Certification"/><category term="Exam"/></entry></feed>