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,160 points
258 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,280 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
78 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 in AWS by Praveen
• 700 points
15 views
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,900 points
189 views
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
181 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,280 points
87 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,280 points
386 views