Coder Social home page Coder Social logo

greeter-app-mesh-cdk's Introduction

greeter-cdk

A simple AWS Cloud Development Kit app example that shows how to deploy an App Mesh powered service mesh that links three services:

The microservices are connected like this:

architecture

  • A public facing load balancer distributes traffic from the general public to the front facing greeter service.
  • The greeter services uses App Mesh and an Envoy Proxy sidecar to establish a service mesh that allows it to directly fetch from the greeting and name service containers

You can see the full CDK app that deploys this architecture here: index.js

Usage

Clone the repository, and ensure that you have Node.js installed on your development machine.

Run npm install to install the project dependencies

Run npm run-script deploy to deploy the project on your AWS account. After a few minutes you will be given a URL of the running application. You may also need to run an initial bootstrap command if you have never used AWS CDK on your AWS account before. The CDK tool will tell you the command to run if necessary.

greeter-app-mesh-cdk's People

Contributors

nathanpeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

greeter-app-mesh-cdk's Issues

How to get the arn of the registry

Hi there.

when looking at https://github.com/nathanpeck/greeter-app-mesh-cdk/blob/master/index.js, it looks like you are using some arn directly. Can you elaborate on how to get that arn? I'd like to use it from eu-west-1 and I guess for that it is different.

Looking at https://docs.aws.amazon.com/app-mesh/latest/userguide/envoy.html it only gives me an url, e.g. 840364872350.dkr.ecr.us-west-2.amazonaws.com/aws-appmesh-envoy:v1.12.2.1-prod. When trying to do something like

ecs.ContainerImage.fromRegistry(840364872350.dkr.ecr.us-west-2.amazonaws.com/aws-appmesh-envoy:v1.12.2.1-prod)

the CDK gives me this warning:

Proper policies need to be attached before pulling from ECR repository, or use 'fromEcrRepository'.

Any ideas?

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.