Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 26, 2022
1 parent 0ae5856 commit 4591656
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions dynamodb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ locals {
}

resource "aws_dynamodb_table" "table" {
count = var.create ? 1 : 0
name = local.dynamodb_table_name
hash_key = "InstanceId"
billing_mode = "PROVISIONED"
Expand Down
3 changes: 2 additions & 1 deletion lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ locals {
}

resource "aws_lambda_function" "lambda" {
count = var.create ? 1 : 0
function_name = local.lambda_name
handler = local._defaults["lambda_handler"]
memory_size = 128
reserved_concurrent_executions = -1
role = aws_iam_role.role.arn
role = var.crate ? aws_iam_role.role[0].arn : null
runtime = "python3.9"
source_code_hash = filebase64sha256(local.lambda_file)
filename = local.lambda_file
Expand Down

0 comments on commit 4591656

Please sign in to comment.