https://github.com/sattyagrah/awsvcpusedperregion
This bash script can be used to find out total number of VCpus used in the region where any EC2 instance is running or stopped.
https://github.com/sattyagrah/awsvcpusedperregion
aws awscloud ec2 ec2-instance ec2-instances vcpu
Last synced: about 1 month ago
JSON representation
This bash script can be used to find out total number of VCpus used in the region where any EC2 instance is running or stopped.
- Host: GitHub
- URL: https://github.com/sattyagrah/awsvcpusedperregion
- Owner: sattyagrah
- License: apache-2.0
- Created: 2023-07-21T11:04:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-21T11:45:48.000Z (almost 3 years ago)
- Last Synced: 2025-01-28T02:45:15.510Z (over 1 year ago)
- Topics: aws, awscloud, ec2, ec2-instance, ec2-instances, vcpu
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Total-Vcpus-used-Per-Region
This bash script can be used to find out the total number of VCpus used in the region where any EC2 instance is running or stopped.
### Only to be used in AWS CLOUD
#### This is a Shell Script, that can be used to find out the total VCpu used in all the regions.
It sometimes becomes tricky to find out the number of VCpus consumed in any given region and due to this, you may get the error VCpu limit exhausted while launching an EC2 instance. You can make use of this script to find out the total consumed VCpus in any region.
1. Download or [Clone](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository#cloning-a-repository) the script from github repository.
```sh
git clone https://github.com/mrsatya21/Total-Vcpus-used-Per-Region.git
```
2. Go to the directory Total-Vcpus-used-Per-Region where you have downloaded or cloned the repository.
```sh
cd Total-Vcpus-used-Per-Region
```
3. Change the permission -
```sh
chmod +x total_VCpu_Per_Region.sh
```
4. Run the shell script -
```sh
./total_VCpu_Per_Region.sh
```
NOTE - It is necessary to [install](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html) and [configure](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-methods) AWS [CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) before using this script.