PaloAltoNetworks / terraform-aws-swfw-modules

Terraform Reusable Modules for Software Firewalls on AWS
https://registry.terraform.io/modules/PaloAltoNetworks/swfw-modules/aws
MIT License
14 stars 11 forks source link

fix(modules/asg): Accept entire SG list for ENI in ASG module #88

Closed acelebanski closed 1 month ago

acelebanski commented 1 month ago

Description

This PR fixes a problem with asg module that prevented attaching more than one Security Group to the instances ENIs. It took the 1st item from the SG list, both in Terraform code and Lambda code (so for ENI created via launch template and those attached with Lambda). Now it accepts a list in both places.

Motivation and Context

Module attached only 1st Security Group in the list to the ENIs.

85

How Has This Been Tested?

Locally by deploying the module in the lab.

Types of changes

Checklist