Skip to content

smartwavesa/amazon-ec2-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

amazon-ec2-lambda

dns-route53.py

This script allows to update route53 dns routes using a given hostname/domain passed into the tags or userdata of ec2 instance and the private ip address from a private VPC.

First script will look into the tags of the instance: Hostname, Domainname, Aliases

Alt text

If one of Hostname or Domain tag is not found, then script will check user data for following JSON

User data should be as follow:

{
    "hostname": "your-marvelous-hostname",
    "domainname": "your-marvelous-domain.com",
    "aliases": ["your-incredible-alias-1","your-incredible-alias-2"]
}

star-stop-instances.py

This script allows to start stop instances based on a 'Schedule' tag, that should be set to 'office_hours' or 'always'. Once trigerred the script will make sure instances with tag office_hours are started in during office hours and stopped otherwise. Instances with tag always, will be started if not already running.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages