Code Monkey home page Code Monkey logo

route53-autonaming's Introduction

This repository will move to the github repository eventually. This is interim until the repository gets created by the Github administrator

What is in this repository?

This repository contains:

  1. Reference for registering microservices with Amazon Cloud Map and Amazon Route53 Autonaming API's (register-ms.py)
  2. Reference for deregistering microservices with Amazon Cloud Map and Amazon Route53 Autonaming API's
  3. Example microservice that can be deployed into EC2 instance backed by ASG
  4. Example microservice that can be deployed as serverless using API Gateway and AWS Lambda
  5. Example microservice that can be deployed on Amazon ECS

Each of these above microservices can make either DNS or HTTP based calls to Cloud Map API's (Calls to register-ms.py)

Deployment:

  1. Deploy the register-ms.py as a lambda in your account.
  2. Deploy the deregister-ms.py as a lambda in your account.

To see example services working:

  1. Amazon ECS provides numerous examples of creating clusters and deploying service using container to cluster.
  2. Deploy the serverless microservice using your standard deployment practices or using the provided cloudformation template.
  3. Deploy the EC2 sample microservice using the provided cloudformation template.

What you need to see register microservice in action:

  1. Run the register-microservice lambda using sample event below: { "Protocol": "DNS", "NamespaceName": "cloudmapdnsec2", "ServiceName": "ec2instancetest", "microservicename": "caketypes", "instanceId": "172.26.27.12", "port": "5000", "vpcId": "vpc-f8616c9d" }

  2. Once you have the lambda deployed and API Gateway URL registered, get the "API Gateway URL" address.

You can register the HTTP Namespace by running lambda using { "Name": "frostingservice", "NamespaceId": "ns-uhawsi3ivlzmrmcm", "CreatorRequestId": "frost-service-1105", "Description": "Frosting APIG MS" }

The sample code provided for the container microservice, has the calls that demonstrate how to lookup/discover the data registered by other microservices

Future open issues:

route53-autonaming's People

Contributors

mperi avatar palsarma avatar

Watchers

 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.