A List of Terraform Books

1492046906Terraform: Up & Running: Writing Infrastructure as Code by O’Reilly Media

B08H8XD9W4Terraform Cookbook: Efficiently define, launch, and manage Infrastructure as Code across various cloud platforms by Packt Publishing

1491924357Infrastructure as Code: Managing Servers in the Cloud by O’Reilly Media

1838642730Learning DevOps: The complete guide to accelerate collaboration with Jenkins, Kubernetes, Terraform and Azure DevOps by Packt Publishing

149205769XPython for DevOps: Learn Ruthlessly Effective Automation by O’Reilly Media

1491977086Terraform: Up and Running: Writing Infrastructure as Code by O’Reilly Media

B08FYSXCC2HashiCorp Certified: Terraform Associate Practice Test

B01MZYE7OYThe Terraform Book by Turnbull Press

B07V1JHDGSLunchtime Labs: Terraform with AWS: Streamline your infrastructure operations | Learn how to use the Terraform Infrastructure as Code (IaC) tool to manage AWS in a Lunchtime

B08HKNZKFQMaster Terraform – Infrastructure as Code Concepts: Complete Tutorials on Terraform  » Read more..

What is User Data in AWS or Terraform?

Problem scenario
You have heard about user data in AWS or Terraform. What is it?

Answer for AWS
Generally it is a customization that the account owner configured to apply to an EC-2 instance when it first launches. It is either a shell script or a cloud-init directive that is used when an EC-2 instance is launched (according to
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html).

 » Read more..

A List of Python Books

1593279280Python Crash Course, 2nd Edition: A Hands-On, Project-Based Introduction to Programming by No Starch Press

1593279922Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners by No Starch Press

1449355730Learning Python, 5th Edition by O’Reilly Media

0134692888Learn Python 3 The Hard Way (Zed Shaw’s Hard Way Series) by Addison-Wesley Professional

1491957662Python for Data Analysis: Data Wrangling with Pandas,  » Read more..

How Do You Write a Terraform Module in AWS?

Problem scenario
You want to write a Terraform module in AWS. What do you do?

Solution
You will use the keyword “module” in a .tf file, and you will use either “terraform init” or “terraform get” to install the module. The directions below were adapted from https://www.howtoforge.com/how-to-create-a-terraform-module/.

Prerequisite
You need to have Terraform installed;

 » Read more..

How Do You Use Terraform and Kubernetes in a Simple Way (as a Proof of Concept)?

Problem scenario
You want to use Terraform and Kubernetes (in EKS). How do you do this in a simple way to test it out?

Solution
Prerequisite

This assumes you have deployed EKS. If you need assistance, see this posting.
This assumes you have installed Terraform. If you need assistance, see this posting.

Procedures

  1. This first step is optional.

 » Read more..

How Do You Fix the AWS CLI Error “Following required service principals [eks.amazonaws.com] were not found in the trust relationships”?

Problem scenario
You run an AWS CLI command, but you get this error:

An error occurred (InvalidParameterException) when calling the CreateNodegroup operation: Following required service principals [eks.amazonaws.com] were not found in the trust relationships of clusterRole arn:aws:iam::12345678910:role/foobar

How do you fix this?

Solution
Draft a command like this (but replace “12345677810:role/foobar” with the equivalent string in the error,

 » Read more..

How Do You Install the dot Utility on a Debian/Ubuntu Server?

Problem scenario
You want the dot utility to transform “terraform graph” command output to usable files. What should you do?

Solution
Run this command: sudo apt -y install graphviz

 » Read more..

A List of PowerShell Books

1593279183PowerShell for Sysadmins: Workflow Automation Made Easy by No Starch Press

1617294160Learn Windows PowerShell in a Month of Lunches by Manning Publications

1449320686Windows PowerShell Cookbook: The Complete Guide to Scripting Microsoft’s Command Shell by O’Reilly Media

1789536669Mastering Windows PowerShell Scripting: Automate and manage your environment using PowerShell Core 6.0, 3rd Edition by Packt Publishing

B085RQNL9XWindows PowerShell and Scripting for Beginners: Complete Beginners Guide to learn Windows PowerShell and its Scripting by Independently published

1617295094Learn PowerShell Scripting in a Month of Lunches by Manning Publications

0735675112Windows PowerShell Step by Step by Microsoft Press

1789808537Windows Server 2019 Automation with PowerShell Cookbook: Powerful ways to automate and manage Windows administrative tasks,  » Read more..

How Do You Test the “mount -a” Command to Verify Sufficient Permissions on a Linux VM?

Problem scenario
You want to test “mount -a” to verify your user has sufficient permissions. You cannot add a physical device to the Linux server. How do you confirm “mount” will work?

Solution
Create a directory to be a mount point:
sudo mkdir /aaa
Find a block device to mount. One way would be to run this: sudo cat /proc/partitions
Once found,

 » Read more..

How Do You Install PostgreSQL on a Debian/Ubuntu Linux Server?

Problem scenario
You are using Debian or Ubuntu Linux and you want to install PostgreSQL. What do you do?

Solution
Run these commands:
sudo apt -y install postgresql
sudo systemctl start postgresql@11-main
sudo pg_ctlcluster 11 main start

 » Read more..