Keeping Terraform Updated (using snap)

Fortunately or unfortunatly, I have several computers to manage and my main ones are macOS (work) and Linux (Ubuntu and Fedora).

In macOS I can use brew update to install and update but in Linux, there isn’t a ways as easy as the mac… until now…

Introducing Terraform Snap package.

First of all, SNAPs are a new a exciting game changer. They are universal Linux packages (forget the war with deb and rpm).

To be able to run snaps you need to install snapd:

In Ubuntu: sudo apt install snapd

In Fedora: sudo dnf install snapd

Now you are able to install Terraform Snap package that will allow you to keep your Terraform updated automatically and magically.

For Terraform Snap

sudo snap install terraform-snap

The problem here (for now), is that the binary is now called “terraform-snap.tf”

To overcome this, I have created a alias like this:

alias terraform='terraform-snap.tf'

There is also a vault snap updated but the packer one is a bit out-of-date.

Have fun!

Terraform 0.9.3

Minor update on Terraform but with interesting things added:

FEATURES:

    New Resource: aws_api_gateway_method_settings [GH-13542]
    New Resource: aws_api_gateway_stage [GH-13540]
    New Resource: aws_iam_openid_connect_provider [GH-13456]
    New Resource: aws_lightsail_static_ip [GH-13175]
    New Resource: aws_lightsail_static_ip_attachment [GH-13207]
    New Resource: aws_ses_domain_identity [GH-13098]
    New Resource: azurerm_managed_disk [GH-12455]
    New Resource: kubernetes_persistent_volume [GH-13277]
    New Resource: kubernetes_persistent_volume_claim [GH-13527]
    New Resource: kubernetes_secret [GH-12960]
    New Data Source: aws_iam_role [GH-13213]

The pace of improving Terraform is quite high in the moment (more-less 11 days between releases).

Also, Packer is finaly at v.1 - Congrats Hashicorp!

Move from Bitbucket to Gogs

Had to made a change and move my very old Bitbucket repositories to my new Gogs Repository.

So, what to do if you want to keep the git history

git remote set-url origin https://new_repository.git
git push

And there you go!

Terraform talk

Just did my first technology talk.

It was yesterday in a DevOps meetup in Lisbon and the talk was about Terraform from Hashicorp.

It went well and I’m sharing my code and presentation in Github.

What is DevOps (now in Portuguese)

Some friends and even some called DevOps have issues to understand what is DevOps. Some only want to do code, other only want to do CI/CD, others think that DevOps is playing with Docker…

This video is from a pretty good DevOps in Portugal and shows a little bit what a DevOps should be able to do.

IMAGE ALT TEXT

DevOps by Gustavo Homem - DevOps by Gustavo Homem