Terracost

Cloud cost estimation for Terraform in your CLI

Blockchain & Cloud ComputingGoMIT

Abstract

Terracost is an open-source Blockchain & Cloud Computing project. Cloud cost estimation for Terraform in your CLI. Go library for estimating Terraform costs using ingested cloud vendor prices. It is meant to be imported and used by programs (API's or standalone) with access to a MySQL-compatible database and the Internet. It is built using Go, Terraform, AWS. The complete source code is publicly available on GitHub under the MIT License, making it a useful reference for students building a Blockchain & Cloud Computing mini project or final-year project.

1. Introduction

Go library for estimating Terraform costs using ingested cloud vendor prices. It is meant to be imported and used by programs (API's or standalone) with access to a MySQL-compatible database and the Internet.

2. Objective

Cloud cost estimation for Terraform in your CLI

This project demonstrates how Go, Terraform, AWS can be applied to a real-world Blockchain & Cloud Computing problem.

4. Technology Stack

GoTerraformAWS

5. System Requirements

General requirements for this technology stack — check the README for exact versions.

  • Go 1.20 or later
  • Git (to clone the repository)

6. Installation & Setup

git clone https://github.com/cycloidio/terracost.git
cd terracost
go mod edit -replace github.com/hashicorp/terraform=github.com/cycloidio/terraform@v1.13.5-cy \
  && go mod edit -replace github.com/gruntwork-io/terragrunt=github.com/cycloidio/terragrunt@terraform-cy-v1.13.5 \
  && go get github.com/cycloidio/terracost

Full setup instructions are in the project README.

7. Future Enhancements

Suggested extensions you can add to make this your own project.

  • Add a CI/CD pipeline with GitHub Actions
  • Deploy to a public test network or cloud free tier
  • Add monitoring and cost alerts

8. Viva / Review Questions

Common questions examiners ask for projects in this domain.

  1. Why does this problem need a blockchain or cloud-native design?
  2. Explain the smart contract / infrastructure components and how they interact.
  3. How are gas costs or cloud costs kept under control?
  4. How is the system secured (keys, IAM, access control)?
  5. How would the solution scale to many more users?

9. Source Code & License

This project is developed by cycloidio and published on GitHub under the MIT License. Please follow the license terms and credit the original author when you use or modify this code.

Want to build this as your internship project?

Work on a Blockchain & Cloud Computing project like this with mentor guidance, weekly reviews and an internship certificate from Training Trains, Erode — online or offline.

Apply for Blockchain & Cloud Computing Internship