Rust for Cloud Engineers: Why Systems Programming Matters
I started learning Rust as someone who’d spent years writing Python scripts and Go services for cloud infrastructure. My first reaction was …
Read Article →131 articles about cli development, tools, and best practices
I started learning Rust as someone who’d spent years writing Python scripts and Go services for cloud infrastructure. My first reaction was …
Read Article →In the realm of command-line interface (CLI) programming, Emacs stands as a legendary text editor, known for its immense power and unparalleled …
Read Article →In the world of command-line interface (CLI) programming, efficiency is paramount. And when it comes to text editing in the CLI, there’s no tool …
Read Article →OUT=$(aws sts assume-role --role-arn arn:aws:iam::0123456789:role/OrganizationAccountAccessRole --role-session-name test)
export AWS_ACCESS_KEY_ID=$( …To assume an AWS role in the CLI, you will have to do something like this:
aws sts assume-role --role-arn …If you get the following error when trying to run a Docker container:
Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker …
If you get the following error when trying to run a Docker container that was built on an M1 mac:
M1 docker preview and keycloak 'image's platform …
If you would like to list all AWS Lambda Function Names in your CLI using the AWS CLI, then you can do this:
aws …
Read Article →
If you need to install AWS SAM CLI on a Mac, then the easiest option is to use Homebrew with the following commands:
brew tap aws/tap
brew install …
Read Article →
AWS CLIStep 1
export bucketname='your-bucket-here'
Step 2
aws s3api delete-objects --bucket $bucketname --delete "$(aws …
Read Article →
If you need to execute a shell script in NodeJS, then you can use the exec keyword.
Syntax: exec(command [, options] [, callback]
const shell = …
Read Article →
If you need to delete all resources created by Terraform, except for a single, specific one, then you can do the following:
If you need to copy files between two (2) nodes, using Ansible, then you can do the following:
This solution uses the synchronize module, specifically …
If you need to delete files and folders in a directory using Ansible, then you can do the following:
- name: Delete content & entire directory …
Read Article →
If you need to copy multiple files using Ansible, then you can do the following:
Look into using the …
Read Article →If you need to write a shell script in Ansible, you probably have something like this:
- name: iterate user groups
shell: groupmod -o -g {{ …
Read Article →
If you need to pass a variable to Ansible playbook, using the command line, then you can do the following:
If you need to create a directory using Ansible, then you can do the following:
You will need the file module, then to …
If you want to disable the Screensaver on your Mac, by using the Command Line Interface (CLI), then you can do the following:
If you need to copy files from a Docker Container to the Host, then you can do one of the following:
docker cpSyntax:
docker cp …
Read Article →
If you need to get the IP Address of a Docker Container, then you can do the following:
Find out the network …
Read Article →If you get a timeout when trying to install go dependencies, the error may look something like this:
$ go get github.com/aws/aws-sdk-go/aws
go: …
Read Article →
If you receive the following error when trying to clone a Git repository:
fatal: Could not read from remote repository.
The full message may look …
Read Article →