What are recommend style attributes in Terraform code?
Just a quick recap on Terraform code style attributes:
- The proper indentation in a Terraform file is two spaces rather than a tab.
- Block meta-arguments should go at the end of a resource definition.
- All single arguments should be together in a group followed by an empty line.
- Use blank lines for clarity and . . .
Explain to me like I'm 9: What are "resources" in Terraform?
Josh Samuelson has a fantastic LinkedIn Learning course about Terraform and answers this question quite clearly:
- Resources are the building blocks of Terraform code.
- Resources define the 'what' of your infrastructure and Terraform figures out the 'how'.
- Although all resources share the same syntax, . . .
Explain to me like I'm 9: What exactly is Terraform and how does it work?
Sometimes it helps to have a succinct explanation of things. Here's a recap of Terraform:
- Terraform is an infrastructure management tool made by HashiCorp.
- Its primary purpose is to allow administrators to provision, manage, and maintain cloud resources.
- Terraform is a tool and a language.
- As a tool, . . .
Python refresher: lists vs tuples vs sets vs dictionaries
Just a quick refresher to clarify differences:
- Sets, lists, tuples, and dictionaries are all data structures that offer various ways to organize and store data. The difference is in the details.
- Lists are an ordered and mutable collection of elements(meaning that their values can be modified after creation).
- . . .
Anatomy of a sample docker file
Just a quick refresh on the elements of a sample docker file:
FROM ubuntu
LABEL maintainer="Mike <[email protected]>"
USER root
COPY ./foo.bash /
RUN apt -y update
RUN apt -y install foo foo2
RUN chmod 755 /foo.bash
USER nobody
ENTRYPOINT [ . . .
Explain to me like I'm 9: what exactly ARE Docker containers?
I recently came across what could be the best explanation of containers and wanted to share it.
Source: "Learning Docker" series on LinkedIn Learning by Carlos Nunez.
- A container is composed of two things: a Linux namespace and a Linux control group.
- Namespaces are a Linux kernel feature that provides . . .
Pondering the "it works on my machine" problem
I've been working recently with Kubernetes and docker (super fun!). A question kept lingering in the back of my mind though: why is inconsistent stability and results in prod such a broadly reported issue?
I came across a LinkedIn course by Carlos Nunez and I really liked the reasons he gave:
- Missing Tools - . . .