These utilities have been developed to assist you in calculating the overall size of a cloud deployment.
The benchmark.sh
entrypoint script helps you to perform sizing calculations for your cloud resources. It detects the cloud provider (AWS, Azure, or GCP) and downloads the necessary scripts to perform the calculation. You can also pass one or more cloud providers as arguments.
Configuration:
The script recognizes the following environmental variables:
AWS_ASSUME_ROLE_NAME
: The name of the AWS role to assume (optional)
To use, please export the variable in your environment prior to running the script:
export ENV_VARIABLE="Example-Value"
Usage:
./benchmark.sh [aws|azure|gcp]...
Below are two different ways to execute the script.
To execute the script in your environment using Cloud Shell, follow the appropriate guide based on your cloud provider:
For those who prefer to run the script locally, or would like to run the script against more than one cloud provider at a time, follow the instructions below:
-
Download the script:
curl -O https://raw.githubusercontent.com/CrowdStrike/cloud-resource-estimator/main/benchmark.sh
-
Set execution permissions:
chmod +x benchmark.sh
-
Example: Run the script against AWS and Azure:
./benchmark.sh aws azure
Alternatively, you can run the script directly from the URL:
-
Run the script against AWS and Azure:
curl https://raw.githubusercontent.com/CrowdStrike/cloud-resource-estimator/main/benchmark.sh | bash -s -- aws azure
-
Run the script and let it determine the available cloud providers:
curl https://raw.githubusercontent.com/CrowdStrike/cloud-resource-estimator/main/benchmark.sh | bash
Please review our Developer Guide for more information on how to contribute to this project.
These scripts are provided to the community, for free, under the Unlicense license. As such, these scripts carry no formal support, express or implied.
Please review our Code of Conduct and then submit an issue or pull request. We will address the issue as quickly as possible.