Skip to content

Commit

Permalink
renamed use_default_security_group variabel
Browse files Browse the repository at this point in the history
  • Loading branch information
marciogoda committed Aug 15, 2024
1 parent edb53f3 commit 9fdde33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
locals {
security_group_ids = var.security_group_ids != null ? var.security_group_ids : [aws_security_group.default[0].id]
security_group_ids = var.use_default_security_group == false ? var.security_group_ids : [data.aws_security_group.default[0].id]
}

data "aws_security_group" "default" {
count = var.use_default_sg == true ? 1 : 0
count = var.use_default_security_group == true ? 1 : 0
name = "${terraform.workspace}-default-lambda-sg"
}

Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ variable "architectures" {
default = ["x86_64"]
}

variable "use_default_sg" {
variable "use_default_security_group" {
type = bool
description = "Use default security group"
default = false
Expand Down

0 comments on commit 9fdde33

Please sign in to comment.