Linn Linn Htun
Linn Linn Htun
AvatarLinn Linn Htun

AWS CLI and Budget (Hands on)

August 2, 2023

AWS CLI and Budget (Hands on)

The AWS CLI (Command Line Interface) is an essential tool for interacting with AWS services from your terminal, enabling automation and scripting of AWS operations. This post provides a hands-on guide to installing and configuring the AWS CLI, essential commands for common tasks, and how to set up AWS Budgets to monitor and control cloud costs.

AWS CLI

Setup on window or Mac OS :

Download AWS CLI installer and install it on local machine > Go AWS > Click Users > Access keys> create access keys > choose command Line Interface (CLI) > Next > Click create access key

Configuration 

run > aws configure > put access key and secret access key > put region name (eg. ap-southest-1)

* See IAM user list cmd -> aws iam list-users

 

 

AWS Budget Setup

Go to Side Navbar > click create a budget button > choose simplified option > choose zero spend budget > put budget name > put email in email recipients

Create Monthly budget

Click create budget button > choose simplified option > choose monthly cost budget > put amount > click create budget button

 

Frequently Asked Questions

What is the AWS CLI?

The AWS CLI is a unified command-line tool that provides a consistent interface to interact with all AWS services, allowing you to control multiple AWS services from the command line and automate them through scripts.

How do you configure the AWS CLI?

Run aws configure and provide your AWS Access Key ID, Secret Access Key, default region, and output format; these credentials are stored in ~/.aws/credentials and ~/.aws/config on your local machine.