Skip to content

Commit

Permalink
Merge pull request #71 from schubergphilis/fvb/sg-hotfix
Browse files Browse the repository at this point in the history
bug: Fix no VPC SG checks
  • Loading branch information
fatbasstard authored Mar 8, 2024
2 parents 9396bbc + 9571570 commit 37ec884
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ locals {
source_code_hash = var.source_code_hash != null ? var.source_code_hash : var.filename != null ? filebase64sha256(var.filename) : null
tracing_config = var.tracing_config_mode != null ? { create : true } : {}
vpc_config = var.subnet_ids != null ? { create : true } : {}
security_group_ids = length(var.security_group_ids) > 0 ? var.security_group_ids : [aws_security_group.default[0].id]
}

data "aws_iam_policy_document" "default" {
Expand Down Expand Up @@ -205,7 +204,7 @@ resource "aws_lambda_function" "default" {

content {
subnet_ids = var.subnet_ids
security_group_ids = local.security_group_ids
security_group_ids = length(var.security_group_ids) > 0 ? var.security_group_ids : [aws_security_group.default[0].id]
}
}

Expand Down

0 comments on commit 37ec884

Please sign in to comment.