Trying to move service with API to private Subnet in AMAZON VPC

+1 vote

The API we created is Public.

 Accessing from :

 api.domain.com

We recently moved the service to a private subnet with an Amazon VPC.
 The web application we are hosting on a public instance which communicates through API to this private instance. 

To access the API hosting on the private instance, how do we create an endpoint for it?

Guess, we can access it via XXX.XX.XXX.XXX which is the private IP address of the instance. 
However, we want to access it with a named endpoint such as api.domain.com. 
How to do this?
Is this method going to be scalable and reliable?
Is this as easy as editing the /etc/hosts file on the public instance?
XXX.XX.XXX.XXX api.domain.com

May 3, 2018 in AWS by Flying geek
• 3,130 points
67 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

In such case, you can create a Private Hosted Zone into your Route53 in order to resolve your DNS within you VPC.

Create a Private Hosted Zone in Route53 to resolve DNS names within your VPC.

For more Details, you can check AWS Website mentioning the whole topic: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html

Cheers :)

answered May 3, 2018 by Cloud gunner
• 4,240 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

What is the use of a Private Subnet in a VPC?

Private subnets are available across all AWS ...READ MORE

answered Mar 12 in AWS by Reena Mishra
32 views
0 votes
2 answers
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,100 points
56 views
+13 votes
2 answers
0 votes
1 answer

Trying to use GetApiKeys in Amazon SDK

Try using this one:  var client = new ...READ MORE

answered Jun 12, 2018 in AWS by Cloud gunner
• 4,240 points
46 views
0 votes
1 answer

Trying to upload data stream in Amazon S3

Try adding the ContentType & ACL in ...READ MORE

answered Jun 28, 2018 in AWS by Cloud gunner
• 4,240 points
161 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.