3

I have a requirement where ALB and target groups are in different VPCs as well as regions. Please advise if there is any documentation, steps/instructions or any other resource, which could help achieving this.

I think I can do this in different VPCs(same regions), but different regions, I am not sure, please advise.

Thanks!

Shaggy
  • 484
  • 1
  • 6
  • 16
  • This is probably where you want to start: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-sharing.html – Nicholas Martinez Mar 22 '21 at 03:57
  • You can't do this. You can only add targets from different regions, but not target groups. – Marcin Mar 22 '21 at 04:00
  • @Marcin, are there any details or documentation on why this cannot be established? – Shaggy Mar 22 '21 at 04:09
  • 1
    Both LBs and TGs are regional resources, as most resources in AWS. So you have to create your TGs in same region as LB, and then you can attach targets from different regions to it through VPC peering. – Marcin Mar 22 '21 at 04:13
  • Thanks @Marcin, I was trying to avoid this since I have a target group in a different region and didn't want to do more work. It looks like I will have to work on the approach you have suggested. Thanks! – Shaggy Mar 22 '21 at 04:16

1 Answers1

1

Cross region VPC peering then add the instances from another region to target group

Harish Narayanan
  • 554
  • 1
  • 5
  • 8