Ecoinfra
Emission prediction tool
Install / Use
/learn @eco-infra/EcoinfraREADME
ecoinfra is a powerful tool that helps you predict, assess, and reduce the environmental impact of your cloud infrastructure. By analyzing Terraform plan outputs, you can harness predictive sustainability into your cloud operations.
Visit our website at Eco-Infra.com to learn more about how we're revolutionizing eco-friendly cloud computing.
🚀 Getting Started
To start using the ecoinfra tool, follow these simple steps:
Step 1: Download the Tool
- Visit releases to download the ecoinfra tool for your supported operating system.
- Once the download is complete, locate the downloaded file on your computer.
Step 2: Set up Your API Key
- Open your web browser and go to Eco-Infra.com.
- Log in to your Eco-Infra account or create one if you don't have an account already.
- After logging in, navigate to your profile settings.
- In your profile settings, look for the "API Key" section.
- Click on "Create".
- A unique API key will be generated for you. Copy this key to your clipboard.
Step 3: Run the Tool
Run the tool in a supported CI environment
- name: Eco-Infra
uses: ecoinfra/ecoinfra-action@v1.2.0
with:
token: 'TOKEN'
project-name: 'my-project'
file: './terraform/state.json'
Run the tool from your command line interface (CLI) or terminal.
$ ecoinfra-PLATFORM --token {{Token}} --project-name {{Unique Project Name}} --file {{Plan JSON File}}
Example:
# Generate the Terraform JSON file
$ terraform plan -out=plan.out
# get the plan json
$ terraform show -json plan.out > plan.json
# or state json
$ terraform show -json terraform.tftate > state.json
# Analyze plan with ecoinfra
$ ecoinfra-PLATFORM --token c3dc55b6-78a0-43ad-2513-a751e76553de --project-name "Production Account" --file plan.json
# Analyze state with ecoinfra
$ ecoinfra-PLATFORM --token c3dc55b6-78a0-43ad-2513-a751e76553de --project-name "Production Account" --file state.json
📖 Documentation
Required Parameters
--token- Your unique API key.--project-name- A unique name for your project.-fill- Path to the Terraform plan JSON file.
Optional Parameters
--breakdown- Show detailed resource breakdown.
Generating the Plan File
Generate the plan file using Terraform:
terraform plan -out=plan.out
terraform show -json plan.out > plan.json
Supported Providers
- AWS 🟢
- Azure 🔴
- GCP 🔴
Supported IaC Tools
- Terraform 🟢
- OpenTofu 🔴
- Pulumi 🔴
- CloudFormation 🔴
Running the tool from source
- Clone the repository.
- Install the dependencies.
- Build the tool
- Run the tool!
git clone git@github.com:eco-infra/ecoinfra.git
npm i
npm run package
# Generate the Terraform plan file
terraform plan -out=plan.out
terraform show -json plan.out > plan.json
# Run the tool
./build/ecoinfra-PLATFORM --token {{Token}} --project-name {{Unique Project Name}} -fill plan.json
Contributing
Please read the contribution guidelines before contributing to the project. CONTRIBUTING.md
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
84.2kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
