Safe & Proficient CLI and Scripting on AWS

Quick tips to use the AWS CLI, scripts and automation tools proficiently and avoid incidents on the AWS platform

Edoardo Nosotti
RockedScience

--

Photo by fran hogan on Unsplash

If you are running multiple workloads on the AWS cloud you are probably familiar with automation tools such as Terraform and the AWS CLI. Scripting and automating your infrastructure makes your work easier, faster and less error-prone. The AWS CLI is also very convenient to run quick tasks or to be wrapped in shell scripts.

Dealing with multiple projects, environments and accounts can still be challenging regardless of all the automation. So here’s a few tips to make your life easier, keep your system in good working condition and reduce the chances of incidents due to human error.

1. Create a dedicated virtual Python environment for the AWS CLI

The AWS CLI comes as a Python package on Linux and MacOSX and has a very important dependency: botocore

A low-level interface to a growing number of Amazon Web Services. The botocore package is the foundation for the AWS CLI as well as boto3.

If you have other applications and automation tools relying on the AWS API on your system, they probably use boto3 and botocore too and…

--

--

Edoardo Nosotti
RockedScience

Certified Cybersecurity Analyst and Senior Cloud Solutions Architect. Passionate about IoT, AI, ML and automation.