Skip to content

About

This script convert all Ec2 machine to Route53 records. If you have a domain, all your Ec2 machines can be accesses by its name.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

lambda-update-route53

This script convert all Ec2 machine to Route53 records. If you have a domain, all your Ec2 machines can be accesses by its name.

For instance, if you have the following machines (with Public IP enabled):

  • machine number one
  • machine number two
  • this is another machine

And you have the domain example.org, all the machines will get the following names:

  • machine-number-uno.example.org
  • machine-number-two.example.org
  • this-is-another-machine.example.org

In order for this to work you have to create a trigger in Amazon EventBridge > Rules with the following Event pattern:

{
  "source": ["aws.ec2"],
  "detail-type": ["EC2 Instance State-change Notification"],
  "detail": {
    "state": ["running"]
  }
}

About

This script convert all Ec2 machine to Route53 records. If you have a domain, all your Ec2 machines can be accesses by its name.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages