<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mechanicode</title>
    <description>The latest articles on DEV Community by Mechanicode (@mechanicode).</description>
    <link>https://dev.to/mechanicode</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F6261%2F67cb12d8-b0b4-403b-ac57-15a959d42897.png</url>
      <title>DEV Community: Mechanicode</title>
      <link>https://dev.to/mechanicode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mechanicode"/>
    <language>en</language>
    <item>
      <title>Alternatives to Terraform Cloud</title>
      <dc:creator>Emmanuel</dc:creator>
      <pubDate>Mon, 07 Nov 2022 02:00:44 +0000</pubDate>
      <link>https://dev.to/mechanicode/alternatives-to-terraform-cloud-2b43</link>
      <guid>https://dev.to/mechanicode/alternatives-to-terraform-cloud-2b43</guid>
      <description>&lt;p&gt;Like most folks who probably arrived at this blog, I attempted to introduce Terraform cloud to my organization but was ushered away due to cost.&lt;/p&gt;

&lt;p&gt;I needed a better solution to managing our terraform state in a large team that did not require cumbersome locking processes.. &lt;em&gt;cough&lt;/em&gt; &lt;em&gt;cough&lt;/em&gt; DynamoDB&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/runatlantis/atlantis"&gt;Atlantis&lt;/a&gt; turns out to the the tool i had been looking for.&lt;/p&gt;

&lt;p&gt;It is a no-frills application that listens for Terraform pull request events via webhooks. In my case, I used GitHub webhooks to automate and enforce my organization's terraform workflows in an auditable manner.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick Rundown&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It enables a CI/CD pipeline for infrastructure (GitOps), which causes the PR to become the system of record.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--icacb0c1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/izxxxdmnswtklv9ayd4h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--icacb0c1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/izxxxdmnswtklv9ayd4h.png" alt="architecture" width="691" height="239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Benefits&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Increased visibility and auditing of Infrastructure changes&lt;/li&gt;
&lt;li&gt;Manages terraform state locking until the pull request is merged&lt;/li&gt;
&lt;li&gt;Approval-based infrastructure builds&lt;/li&gt;
&lt;li&gt;Centralizes permissions to service accounts vs. users&lt;/li&gt;
&lt;li&gt;Enables collaboration with all engineering teams&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Cons&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;webhook interactions happen one way via pushes. This requires a public endpoint to interface with Github (if your VCS is self-hosted, this may not be an issue)&lt;/li&gt;
&lt;li&gt;Drift detection alerts for rarely used repositories need to be manually configured.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;PR Workflow&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aEsFh3yu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/127h8ntpntxv3zx87cj2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aEsFh3yu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/127h8ntpntxv3zx87cj2.png" alt="Image description" width="880" height="1053"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3-q3rEYN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d48ielv2uel1bmlm78xb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3-q3rEYN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d48ielv2uel1bmlm78xb.png" alt="Image description" width="880" height="632"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
If you are on a budget and looking for remote state management, then this is the best OSS alternative to terraform cloud that I have found. &lt;/p&gt;

</description>
      <category>terraform</category>
      <category>iac</category>
      <category>automation</category>
      <category>github</category>
    </item>
  </channel>
</rss>
