GithubHelp home page GithubHelp logo

ec2-route53-self-assign's Introduction

ec2-route53-self-assign

example usage

relate https://github.com/tosslab/aws_instance_scheduler

  • ec2 start 시 변경된 IP 를 Route53 에 자동으로 연결

Create IAM user

AmazonRoute53DomainsFullAccess
AmazonRoute53FullAccess

Install python and the AWS client tools

ubuntu example

$ sudo apt-get install python-pip
$ sudo pip install -U pip
$ sudo pip install awscli

Change user

this example use root.

sudo su - 

Config aws

$ aws configure --profile assign-ec2-route53
AWS Access Key ID [None]: -your-aws-key-id
AWS Secret Access Key [None]: -your-aws-access-key
Default region name [None]: -your-region-name
Default output format [None]:

Edit source

$ vi update-route53-A.json
replace {CHANGE_DOMAIN} 
$ vi update-route53.sh
replace {CHANGE_HOSTED_ZONE_ID} 

Make it excutable

$ chmod +x update-route53.sh

Adding a service

$ sudo ln -s /root/update-route53.sh /etc/init.d/update-route53
$ sudo update-rc.d update-route53 defaults

References

http://docs.aws.amazon.com/cli/latest/reference/route53/change-resource-record-sets.html

ec2-route53-self-assign's People

Contributors

duddns avatar leehankyeol avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.