AWS Lambda and Python

AWS Lambda is a server less computing platform. You can execute your code without provisioning or managing servers. Tested an example of copying a text file dropped into one S3 bucket to another. 1. Create a IAM role with the CloudWatch and S3 policies. Call role lambda_s3 and add policies:…

Terraform with Azure

Azure provides a cloud shell with Terraform already installed and even an editor aware of Terraform source. I tested creating a network and VM using the cloud shell in the browser. REF: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/terraform-install-configure Note: I am not showing dry run (terraform plan) but you should always be in the habit…

Sudo and home folder

I suspect behavior of setting $HOME when using sudo may differ between Linux flavors. As most modern Unix operating systems discourage using the root account and promote using sudo, I have mostly always used “sudo -s”. I expect that my shell then will reference /root as my home folder($HOME). I…

Go Format Output Column Style

Similar to this article (using python) https://blog.ls-al.com/python-output-align-by-column/ I also did a quick Golang implementation. It is not quite as done as I would like but it is reasonably close. Similar to the python article the idea is to use something like an array to store column header descriptions and a…

Restic updates

If you are used to the way how easy rclone updates with a one-liner then this may help with restic also. Found it here: https://github.com/restic/restic/issues/1930 “just wanted to share a simple 4-line script to download and install the latest release of restic from Linux shell using cURL to /usr/local/bin:”