🔎 A Streamlit app for exploring available AWS EC2 Capacity Blocks and SageMaker Training Plans across regions and instance types.
This is a single-file Streamlit app. Download app.py and run:
streamlit run app.pyMake sure you have:
- Python Dependencies (listed in requirements.txt):
streamlit,boto3,pandas - AWS IAM permissions:
ec2:DescribeCapacityBlockOfferings,sagemaker:SearchTrainingPlanOfferings
-
Clone the repository
git clone <Repo URL> cd <Repo folder>
-
Install dependencies
pip install -r requirements.txt
-
Configure AWS credentials
The app requires the following AWS IAM permissions:
ec2:DescribeCapacityBlockOfferingssagemaker:SearchTrainingPlanOfferings
aws configure # or set environment variables export AWS_ACCESS_KEY_ID=your_key export AWS_SECRET_ACCESS_KEY=your_secret
-
Run the application
streamlit run app.py
- (Optional) Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate
- Example of a minimal IAM policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:DescribeCapacityBlockOfferings",
"sagemaker:SearchTrainingPlanOfferings"
],
"Resource": "*"
}
]
}
This project is licensed under the MIT License.
