Skip to content

Instantly share code, notes, and snippets.

@alikhajeh1
Created March 2, 2023 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alikhajeh1/6107727c5218382b9cc6af69be562111 to your computer and use it in GitHub Desktop.
Save alikhajeh1/6107727c5218382b9cc6af69be562111 to your computer and use it in GitHub Desktop.
Example Infracost output
resource "aws_instance" "test_instance" {
  ami           = "ami-123"
  instance_type = "c6i.large"
}

aws_instance.test_instance
 ├─ Instance usage (Linux/UNIX, on-demand, c6i.large)                   730  hours   $62.05 
resource "aws_instance" "test_instance" {
  ami           = "ami-123"
  instance_type = "m6a.large"
}

aws_instance.web_app
 ├─ Instance usage (Linux/UNIX, on-demand, m6a.large)                  730  hours     $63.07
resource "aws_ec2_host" "test" {
 instance_type     = "mac1.metal"
 availability_zone = "us-west-2a"
 host_recovery     = "on"
 auto_placement    = "on"
}

 aws_ec2_host.test
└─ EC2 Dedicated Host (on-demand, mac1)                                730  hours      $790.59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment