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,280 points
1,004 views

1 answer to this question.

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,670 points

Related Questions In AWS

+1 vote
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, 2019 in AWS by Reena Mishra
1,085 views
0 votes
1 answer

Connecting to an EC2 in a Private Subnet

An EC2 created in the Private Subnet ...READ MORE

answered Aug 23, 2019 in AWS by Praveen
• 700 points
2,972 views
+2 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
• 58,020 points
2,714 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,035 views
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,670 points
1,169 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,670 points
2,556 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP