xbalaji
xbalaji

Reputation: 1050

Dynamic DNS for EC2 instances

Sorry if this question was asked earlier, please provide a link to the discussion or answer.

I create and destroy EC2 instances and deploy applications on it. Is the instance considered a Pet if I were to associate a dynamic DNS for the instance.

Are meaningful names for cloud instances considered a PET even if there is no memory of the instance other than the name?

Thanks!

Upvotes: 0

Views: 2271

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 270039

If you wish to have a consistent name to access an application running on a single Amazon EC2 instance, then:

  • Create an Elastic IP Address
  • Assign it to the instance
  • Purchase/Create a Domain Name (eg app.mydomain.com) in Amazon Route 53
  • Create an A record in Route 53 to associate the domain name with the Elastic IP address

In future, if the instance is terminated and replaced with a new instance, simply assign the Elastic IP Address to the new instance and it will be instantly accessible via the same domain name.

Upvotes: 1

Related Questions