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
Bug fix (non-breaking change which fixes an issue)
Checklist
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes if appropriate.
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