Skip to content

Commit

Permalink
Create infracost_test.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
sachajw authored Dec 16, 2024
1 parent 96c3140 commit 7bd5ddd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions infracost_test.tf
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 7bd5ddd

Please sign in to comment.