From 8535879f47af1f4dac8f3f889d559d6a2ee11e15 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 15 Oct 2022 18:11:14 +0200 Subject: [PATCH] chore: Delete lambda function --- infracost-usage.yml | 3 --- main.tf | 8 -------- 2 files changed, 11 deletions(-) diff --git a/infracost-usage.yml b/infracost-usage.yml index 4bc9556..ff97498 100644 --- a/infracost-usage.yml +++ b/infracost-usage.yml @@ -6,6 +6,3 @@ version: 0.1 resource_usage: aws_instance.web_app: operating_system: linux # Use this to override the operating system of the instance, can be: linux, windows, suse, rhel. - aws_lambda_function.hello_world: - monthly_requests: 100000000 # Monthly requests to the Lambda function. - request_duration_ms: 250 # Try changing this to 100 (milliseconds) to compare costs diff --git a/main.tf b/main.tf index f6f2a7b..62dfea0 100644 --- a/main.tf +++ b/main.tf @@ -21,11 +21,3 @@ resource "aws_instance" "web_app" { iops = 800 } } - -resource "aws_lambda_function" "hello_world" { - function_name = "hello_world" - role = "arn:aws:lambda:us-east-1:account-id:resource-id" - handler = "exports.test" - runtime = "nodejs12.x" - memory_size = 1024 # <<<<< Try changing this to 512 to compare costs -}