Best way to expose your services

0

I have a client-server architecture where each client and the server is associated with an AWS account. What is the best way I can expose services from the Server account to the clients? Now each client connects to the server from lambda to lambda connections. Is exposing all the services through an AppSync is better? Are there any other ways more suitable?

1 Answer
1

There are a couple of ways to achieve this architecture. Depending on the level of access (security) required - in addition to your method.

You can peer the VPCs, but the security issue is, this will open up the entire VPC in the shared services (server) account. https://docs.aws.amazon.com/vpc/latest/peering/create-vpc-peering-connection.html

The second method, much easier and secure is using AWS Private-Link: https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-share-your-services.html

This method uses a NLB to front the application (Lambda in your case), and a VPC-Endpoint to route traffic privately from the consumer (client) account. '

I'd recommend setting up a POC for this, initially, then duplicating into a staging account.

AWS
KAS
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions