Skip to content

Commit 5ca66b0

Browse files
committed
Create main config file
1 parent 8fdd8d8 commit 5ca66b0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

main.tf

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
provider "aws" {
2+
region = "us-east-1"
3+
profile = "terraform"
4+
}
5+
6+
resource "aws_lambda_function" "this" {
7+
filename = "payload.zip"
8+
function_name = "test"
9+
role = var.role_arn
10+
handler = "index.handler"
11+
12+
source_code_hash = filebase64sha256("payload.zip")
13+
14+
runtime = "nodejs12.x"
15+
}
16+
17+
data "aws_lambda_invocation" "this" {
18+
function_name = aws_lambda_function.this.function_name
19+
20+
input = <<JSON
21+
{
22+
}
23+
JSON
24+
25+
depends_on = [aws_lambda_function.this]
26+
}

0 commit comments

Comments
 (0)