Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

acelebanski
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

Copy link
Contributor

@sebastianczech sebastianczech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice improvement 👍 in comparison to previous approach, when it was assumed, that we configure 1 security group for 1 network interface

modules/asg/scripts/lambda.py Outdated Show resolved Hide resolved
modules/asg/scripts/lambda.py Outdated Show resolved Hide resolved
Copy link
Contributor

@alperenkose alperenkose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 lgtm as well

@lstadnik lstadnik merged commit bd792ad into main Oct 29, 2024
31 checks passed
@lstadnik lstadnik deleted the multiple-sg-support-for-asg branch October 29, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] asg submodule only applies a single security group per eni
5 participants