Open sriharshakns opened 4 days ago
Hello @sriharshakns! Thank you for utilizing the Landing Zone Accelerator on AWS (LZA) solution. You're correct, as of right now, if you're using the native ALB and Target Group within the LZA solution, specifying target IP addresses from outside of the VPC is not possible. I have opened a feature request for this issue and will keep this issue open to keep you up to date once we plan on including this in an upcoming release. As a workaround, you could utilize the customizations layer to deploy this pattern.
Is your feature request related to a problem? Please describe. TargetGroup allows to add IP addresses from both within and outside the VPC via EC2 Console. The same feature is also supported in underlying CloudFormation resource AWS::ElasticLoadBalancingV2::TargetGroup and can be enabled by setting "AvailabilityZone" property to "all".
However, as per the source code network-associations and target-group, there is no such provision in LZA.
To Reproduce: Define the targetGroups as follows:
Any attempts to create the same will fail the NetworkAssociationsStack with below error:
Describe the feature you'd like Ability to set the "AvailabilityZone" property in LZA manifests.
Possible Workaround: Add the desired Listener and TargetGroup using template file under cloudFormationStacks in customizations-config.yaml.
Sample Template Snippet:
Additional context Console screenshot.