Skip to content

minidocks/infracost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Infracost docker image (minidocks/infracost)

Infracost exists to empower engineering teams to use cloud infrastructure economically and efficiently

Usage

We must connect infracost image with terraform image via the ssh protocol. The easiest solution is to use docker compose.

So create a file docker-compose.yml with content:

version: '3.6'

services:
  terraform:
    image: minidocks/terraform
    volumes:
      - .:$PWD
    working_dir: $PWD
    command: sshd

  infracost:
    image: minidocks/infracost
    depends_on:
      - terraform
    environment:
      ALIAS_TERRAFORM: ssh -yy terraform terraform
    volumes:
      - .:$PWD
    working_dir: $PWD

And in directory with terraform files run command:

docker-compose run --rm infracost breakdown --path .

Tags

Tag Size
latest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published