aws-samples / aws-secure-environment-accelerator

The AWS Secure Environment Accelerator is a tool designed to help deploy and operate secure multi-account, multi-region AWS environments on an ongoing basis. The power of the solution is the configuration file which enables the completely automated deployment of customizable architectures within AWS without changing a single line of code.
Apache License 2.0
725 stars 233 forks source link

Security group rule fix #1219

Closed rjjaegeraws closed 7 months ago

rjjaegeraws commented 7 months ago

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This fixes the Security Group rules when referencing a different subnets. The code's lookup functionality was always returning empty because it had no data populated to query.

To verify:

  1. In a workload account, inspect the Mgmt security group. With the default config, it is expected to see ingress rules with descriptions of 'Central VPC Traffic Inbound from...'
  2. Apply fix and run state machine, expected Security Group Ingress rules exist.