Multi-region IoT endpoint services from a single VPC with multiple VPC endpoints

0

Hi,

I can't figure out if it's possible to have a single VPC have, say, two VPCe's, one of which is associated with IoT core data service in the same region as the VPC, and the other which is associated with a IoT service in a different region, (or even a different account with the same or different region). All using PrivateLink and Private hosted zone.

If it's possible, how can I implement it? If not, I'll try building it with Transit Gateways

Thanks Gary

gary
已提問 1 年前檢視次數 339 次
1 個回答
1
已接受的答案

A VPC Endpoint can't access a service in a different region, so TGW is your best bet to establish cross-region connectivity between VPCs, allowing access to a VPC Endpoint in the same region as the service. VPC Peering is possible too but your plan to use TGW is much better in most cases.

專家
已回答 1 年前
  • Thanks skinsman. How about same region but different account?

  • Yes, sharing a VPC endpoint across VPCs in different accounts works well. You just need network connectivity plus sharing of the PHZ to multiple VPCs. This article https://www.linkedin.com/pulse/how-share-interface-vpc-endpoints-across-aws-accounts-steve-kinsman/ goes through the process. It's talking specifically about VPC endpoints used for AWS services but applies equally to PrivateLink services.

  • Thanks Skinsman. I pressed on with my build and it's working now, with a fair amount of handshaking and multiple CDK stacks in my app. I ended up using CDK (including Cfn bits), CLI and bash. No SDK (custom resources) this time! I stuck with a multi-region, single-account solution for now, using TGWs. When I move to multi-account (and if I'm just sharing within the same region), should I share VPCe's or TGWs (I only have VPCe's in my VPC's)? I need to go lie down now :-). I'll read your article later - thanks!

  • No problem, glad it helped. When you go multi-account use your existing TGWs to hook up VPCs across accounts. You can put VPCe's in each account or share them via PHZs, it's up to you. The latter saves money but is a bit more fiddly to set up.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南