Skip to content

Commit

Permalink
fix bool error
Browse files Browse the repository at this point in the history
  • Loading branch information
mbbilgen committed Aug 10, 2023
1 parent d60df57 commit 54e4309
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/lambda_function_scheduled/cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resource "aws_cloudwatch_event_rule" "app" {
count = "${var.enabled}"
tags = "${local.tags}"

is_enabled = "${var.cloudwatch_event_rule_is_enabled}"
is_enabled = var.cloudwatch_event_rule_is_enabled
}

resource "aws_cloudwatch_event_target" "lambda" {
Expand Down
2 changes: 1 addition & 1 deletion apps/lambda_function_scheduled/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ variable "enabled" {
}

variable "cloudwatch_event_rule_is_enabled" {
default = 1
default = true
}

variable "lambda_bucket_name" {
Expand Down
2 changes: 1 addition & 1 deletion apps/lambda_function_sqs_no_vpc/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "aws_lambda_event_source_mapping" "event_source_mapping" {
batch_size = 1
event_source_arn = "${aws_sqs_queue.sqs_queue.arn}"
function_name = "${aws_lambda_function.app[0].arn}"
enabled = "${var.event_source_mapping_active}"
enabled = var.event_source_mapping_active
}

resource "aws_iam_role" "iam_for_app" {
Expand Down

0 comments on commit 54e4309

Please sign in to comment.