Skip to content

Commit

Permalink
Associated Security Groups doesn't work #102 (#105)
Browse files Browse the repository at this point in the history
* fix security group issue when security_group is null

* fix security group issue when security_group is null

* return back the initial example

Co-authored-by: Dragan Dragicevic <[email protected]>
  • Loading branch information
gandraa and Dragan Dragicevic authored Dec 23, 2021
1 parent 240c977 commit 1b4bdc1
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
Expand Up @@ -41,7 +41,7 @@ resource "aws_efs_mount_target" "default" {
ip_address = var.mount_target_ip_address
subnet_id = var.subnets[count.index]
security_groups = compact(
sort(concat(
(concat(
[module.security_group.id],
var.associated_security_group_ids
))
Expand Down

0 comments on commit 1b4bdc1

Please sign in to comment.