Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unfor19/modulecost
Calculate Terraform modules cost, implemented with infracost
https://github.com/unfor19/modulecost
cost infrastructure module terraform
Last synced: 26 days ago
JSON representation
Calculate Terraform modules cost, implemented with infracost
- Host: GitHub
- URL: https://github.com/unfor19/modulecost
- Owner: unfor19
- Created: 2020-09-02T20:17:11.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-02T23:51:23.000Z (about 4 years ago)
- Last Synced: 2024-08-17T08:07:38.224Z (3 months ago)
- Topics: cost, infrastructure, module, terraform
- Language: Shell
- Homepage:
- Size: 226 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# modulecost
Calculate Terraform modules cost, implemented with [infracost](https://github.com/infracost/infracost)
![modulecost-example](./assets/modulecost-example.jpg)
## Requirements
- [Docker](https://docs.docker.com/get-docker/)
## Getting Started
To see all available commands
```bash
docker run --rm unfor19/modulecost --help
```### Credentials file
```bash
docker run -v $HOME/.aws/:/root/.aws/ \
-e AWS_PROFILE=default \
--rm \
unfor19/modulecost --github_repository terraform-aws-modules/terraform-aws-vpc -p examples/simple-vpc
```Copy-Paste
```bash
docker run -v $HOME/.aws/:/root/.aws/ --rm -e AWS_PROFILE=default unfor19/modulecost --github_repository terraform-aws-modules/terraform-aws-vpc --module_dir_path examples/simple-vpc
```### Environment Variables
```bash
docker run \
-e AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY \
-e AWS_SESSION_TOKEN \
--rm \
unfor19/modulecost --github_repository terraform-aws-modules/terraform-aws-vpc -p examples/simple-vpc
```Copy-Paste
```bash
docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN --rm unfor19/modulecost --github_repository terraform-aws-modules/terraform-aws-vpc -p examples/simple-vpc
```## Authors
Created and maintained by [Meir Gabay](https://github.com/unfor19)