This message was deleted.
# finops
s
This message was deleted.
a
Hey Danno, its currently busted, can you give me a day or two to hack on it. The upstream changed on me.
πŸ‘ 1
s
dannnng, ok thanks for letting me know!
can i check out an older version?
trying
Copy code
6ef1a4774729587a36039759e922db12eaf0243a
i think it worked!
a
Awesome, that is a binary in here also: https://github.com/rshade/ic-demo
πŸ‘€ 1
πŸ™ 1
s
I don’t think that bin file works on mac
a
ah yeah I compiled on Linux, sorry
s
I think i needed a different commit id, i used
git log --graph --abbrev-commit --decorate  --first-parent feat/pulumi
to build
83f5d15d
a
ok, cool, I am seeing if I can get a build working also
πŸ™Œ 1
it builds, but doesn't load right, so I gotta ask infracost. Sorry
s
I’ve got the build running from the last commit on your branch
working great!
This tool is really awesome!!
a
@strong-helmet-83704 awesome. Check out the lastest commit. I got infracost to help me out.
πŸ‘€ 1
a fresh pull and build and you should be able to get:
Copy code
Project: infracost/infracost/examples/pulumi/aws-ts-ebs/preview-existing.json

 Name                                                              Monthly Qty  Unit                        Monthly Cost

 example
 β”œβ”€ Instance usage (Linux/UNIX, on-demand, t3.large)                       730  hours                             $60.74
 └─ Storage (general purpose SSD, gp2)                                      20  GB                                 $2.00

 example-ebs-volume
 └─ Storage (general purpose SSD, gp2)                                      40  GB                                 $4.00

 example-ebs-volume-1
 └─ Storage (general purpose SSD, gp2)                                      40  GB                                 $4.00

 example-ec2-instance
 β”œβ”€ Instance usage (Linux/UNIX, on-demand, t3.micro)                       730  hours                              $7.59
 └─ root_block_device
    └─ Storage (general purpose SSD, gp3)                                   40  GB                                 $3.20

 example-eks-cluster
 └─ EKS cluster                                                            730  hours                             $73.00

 example-elastic-ip
 └─ IP address (if unused)                                                 730  hours                              $3.65

 example-rds
 β”œβ”€ Database instance (on-demand, Single-AZ, db.t3.small)                  730  hours                             $24.82
 β”œβ”€ Storage (general purpose SSD, gp2)                                      40  GB                                 $4.60
 └─ Additional backup storage                              Monthly cost depends on usage: $0.095 per GB

 example-rds-cluster
 β”œβ”€ Storage                                                              1,000  GB                               $100.00
 β”œβ”€ I/O requests                                           Monthly cost depends on usage: $0.20 per 1M requests
 β”œβ”€ Backup storage                                         Monthly cost depends on usage: $0.021 per GB
 β”œβ”€ Backtrack                                              Monthly cost depends on usage: $0.012 per 1M change-records
 └─ Snapshot export                                        Monthly cost depends on usage: $0.01 per GB

 example-rds-clusterInstances-0
 └─ Database instance (on-demand, db.r4.large)                             730  hours                            $211.70

 example-rds-clusterInstances-1
 └─ Database instance (on-demand, db.r4.large)                             730  hours                            $211.70

 example-vpc-0
 β”œβ”€ NAT gateway                                                            730  hours                             $32.85
 └─ Data processed                                         Monthly cost depends on usage: $0.045 per GB

 example-vpc-0
 └─ IP address (if unused)                                                 730  hours                              $3.65

 example-vpc-1
 └─ IP address (if unused)                                                 730  hours                              $3.65

 example-vpc-1
 β”œβ”€ NAT gateway                                                            730  hours                             $32.85
 └─ Data processed                                         Monthly cost depends on usage: $0.045 per GB

 mybucket
 └─ Standard
    β”œβ”€ Storage                                             Monthly cost depends on usage: $0.023 per GB
    β”œβ”€ PUT, COPY, POST, LIST requests                      Monthly cost depends on usage: $0.005 per 1k requests
    β”œβ”€ GET, SELECT, and all other requests                 Monthly cost depends on usage: $0.0004 per 1k requests
    β”œβ”€ Select data scanned                                 Monthly cost depends on usage: $0.002 per GB
    └─ Select data returned                                Monthly cost depends on usage: $0.0007 per GB

 OVERALL TOTAL                                                                                                   $784.00
──────────────────────────────────
49 cloud resources were detected:
βˆ™ 15 were estimated
βˆ™ 34 were free:
  βˆ™ 6 x aws_ec2_route
  βˆ™ 6 x aws_ec2_routetable
  βˆ™ 6 x aws_ec2_routetableassociation
  βˆ™ 6 x aws_ec2_subnet
  βˆ™ 5 x aws_iam_rolepolicyattachment
  βˆ™ 1 x aws_ec2_eipassociation
  βˆ™ 1 x aws_ec2_internetgateway
  βˆ™ 1 x aws_ec2_securitygroup
  βˆ™ 1 x aws_ec2_vpc
  βˆ™ 1 x aws_iam_role

Share this cost estimate: <https://dashboard.infracost.io/share/c4g5msixk2gh0fei5rwg5u4jx5llhrl1>

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Project                                                          ┃ Monthly cost ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━━┫
┃ infracost/infracost/examples/pu...s-ts-ebs/preview-existing.json ┃ $784         ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━┛
s
ooo ok lemme try build HEAD
a
awesome
s
looks great
Copy code
Monthly cost change for ./preview.json
Amount:  +$1,631 ($0.00 β†’ $1,631)

──────────────────────────────────
Key: ~ changed, + added, - removed

8 cloud resources were detected:
βˆ™ 7 were estimated
βˆ™ 1 was free, rerun with --show-skipped to see details

Infracost estimate: monthly cost will increase by $1,631 ↑
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
┃ Project                                            ┃ Cost change ┃ New monthly cost ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╋━━━━━━━━━━━━━╋━━━━━━━━━━━━━━━━━━┫
┃ ./preview.json                                     ┃     +$1,631 ┃ $1,631           ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━┛

Update: A new version of Infracost is available: v0.9.22+747-g5b69cc96 β†’ v0.10.24
  $ curl -fsSL <https://raw.githubusercontent.com/infracost/infracost/master/scripts/install.sh> | sh
a
Awesome, not there may be some resources I don't have support for in there, so that may not be accurate currently.
If you want to add those resources its pretty easy
s
cool, good to know
Will this feature be added to the main distribution of infracost?
a
At some point. Please go vote and comment on their ticket
You can check my pr for currently supported types. https://github.com/infracost/infracost/pull/1752
s
Already voted!