From fbe633a698941cce6c2eb1cfc475eaee39aeac85 Mon Sep 17 00:00:00 2001 From: John in 't Hout Date: Mon, 13 Jan 2025 11:24:36 +0100 Subject: [PATCH] add test --- infracost-test.tf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 infracost-test.tf diff --git a/infracost-test.tf b/infracost-test.tf new file mode 100644 index 0000000..0381bee --- /dev/null +++ b/infracost-test.tf @@ -0,0 +1,35 @@ +provider "aws" { + region = "us-east-1" + skip_credentials_validation = true + skip_requesting_account_id = true + access_key = "mock_access_key" + secret_key = "mock_secret_key" +} + +resource "aws_instance" "my_web_app" { + ami = "ami-005e54dee72cc1d00" + + instance_type = "m3.xlarge" # <<<<<<<<<< Try changing this to m5.xlarge to compare the costs + + tags = { + Environment = "production" + Service = "web-app" + } + + root_block_device { + volume_size = 1000 # <<<<<<<<<< Try adding volume_type="gp3" to compare costs + } +} + +resource "aws_lambda_function" "my_hello_world" { + runtime = "nodejs12.x" + handler = "exports.test" + image_uri = "test" + function_name = "test" + role = "arn:aws:ec2:us-east-1:123123123123:instance/i-1231231231" + + memory_size = 512 + tags = { + Environment = "Prod" + } +} \ No newline at end of file