Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Example Terraform Project

[![infracost](https://img.shields.io/endpoint?url=https://dashboard.api.infracost.io/shields/json/ff15881f-1875-469d-9e09-b9a9227ac666/repos/97ba57c7-0e4a-40cc-8b52-a398cafdc659/branch/6ed2d281-fbcd-45b6-905a-83a1ecde900c)](https://dashboard.infracost.io/org/infracost/repos/97ba57c7-0e4a-40cc-8b52-a398cafdc659)
test change

Use our [Get Started](https://www.infracost.io/docs) guide and the example Terraform projects in this repo to see how Infracost works. The AWS Terraform project contains an EC2 instance and a Lambda function.
There is also an Azure and Google example.
45 changes: 45 additions & 0 deletions infracost_test.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
provider "google" {
region = "us-central1"
project = "test"
}

resource "google_compute_instance" "my_instance" {
zone = "us-central1-a"
name = "test"

machine_type = "n1-standard-16" # <<<<<<<<<< Try changing this to n1-standard-32 to compare the costs
network_interface {
network = "default"
access_config {}
}

boot_disk {
initialize_params {
image = "debian-cloud/debian-9"
}
}

scheduling {
preemptible = true
}

guest_accelerator {
type = "nvidia-tesla-t4" # <<<<<<<<<< Try changing this to nvidia-tesla-p4 to compare the costs
count = 4
}

labels = {
environment = "production"
service = "web-app"
}
}

resource "google_cloudfunctions_function" "my_function" {
runtime = "nodejs20"
name = "test"
available_memory_mb = 512

labels = {
environment = "Prod"
}
}