Skip to content

Commit

Permalink
fix: always create SG when running in VPC unless one is specified
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Wessels Beljaars <[email protected]>
  • Loading branch information
stefanwb committed Mar 4, 2024
1 parent bff7ef5 commit 8bf4754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
create_event_invoke_config = var.retries != null || var.destination_on_failure != null || var.destination_on_success != null ? { create : true } : {}
create_policy = var.role_arn == null && (var.create_policy != null ? var.create_policy : true)
create_security_group = var.subnet_ids != null && length(var.security_group_config.ids) == 0 && length(var.security_group_config.egress_rules) > 0
create_security_group = var.subnet_ids != null && length(var.security_group_config.ids) == 0 || length(var.security_group_config.egress_rules) > 0
dead_letter_config = var.dead_letter_target_arn != null ? { create : true } : {}
environment = var.environment != null ? { create : true } : {}
ephemeral_storage = var.ephemeral_storage_size != null ? { create : true } : {}
Expand Down

0 comments on commit 8bf4754

Please sign in to comment.