diff --git a/README.md b/README.md index 354738c..ba2b0bd 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/infracost_test.tf b/infracost_test.tf new file mode 100644 index 0000000..cddc02d --- /dev/null +++ b/infracost_test.tf @@ -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" + } +}