Skip to content

Commit

Permalink
Fix bug if we disable creation of security group (#48)
Browse files Browse the repository at this point in the history
* Fix bug if we disable creation of security group

* Auto Format

* suggest by @nitrocode

* updated compact over all args

* Suggestion from @Zeskbest

Co-authored-by: cloudpossebot <[email protected]>
  • Loading branch information
nyf-nyf and cloudpossebot authored Jul 4, 2022
1 parent 3a02e59 commit df2a18c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
":preserveSemverRanges"
],
"labels": ["auto-update"],
"dependencyDashboardAutoclose": true,
"enabledManagers": ["terraform"],
"terraform": {
"ignorePaths": ["**/context.tf", "examples/**"]
}
}

4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ resource "aws_ec2_client_vpn_network_association" "default" {
client_vpn_endpoint_id = join("", aws_ec2_client_vpn_endpoint.default.*.id)
subnet_id = var.associated_subnets[count.index]

security_groups = concat(
security_groups = compact(concat(
[module.vpn_security_group.id],
local.associated_security_group_ids
)
))
}

resource "aws_ec2_client_vpn_authorization_rule" "default" {
Expand Down

0 comments on commit df2a18c

Please sign in to comment.