GithubHelp home page GithubHelp logo

awslabs / amazon-ecs-nodejs-microservices Goto Github PK

View Code? Open in Web Editor NEW
667.0 82.0 466.0 452 KB

Reference architecture that shows how to take a Node.js application, containerize it, and deploy it as microservices on Amazon Elastic Container Service.

License: Apache License 2.0

JavaScript 30.21% Shell 67.53% Dockerfile 2.26%
nodejs amazon-web-services ecs ecs-cluster ecs-service microservices-architecture microservices

amazon-ecs-nodejs-microservices's People

Contributors

chaudhary27 avatar dkeightley avatar hyandell avatar jpignata avatar nathanpeck avatar ovalba avatar wtorrealba 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-ecs-nodejs-microservices's Issues

There is no AMIID for ap-northeast-2

I can't make CloudFormation stack.
When I click create button, 'Template validation error: Template error: Unable to get mapping for AWSRegionToAMI::ap-northeast-2::AMIID' error throws.

copilot app init command issue

Im facing this error when I Run copilot app init on my GitBahs; "
/amazon-ecs-nodejs-microservices (master)
$ copilot app init

What would you like to name our application? [? for help] X prompt get application name: Incorrect function."

BTW
both; copilot and aws --version command confirmed

rule.json

Hello guys !

Can someone explain what are the rule.json files in each services ?

Thank you

Lambda and ECS?

Would it be possible to build a backed with microservices using ECS and then run them through Lambda and API gateway? Would that be recommended for a startup with a couple engs?

no router for /api/posts

navigating to /api/posts fails since there is no router configured for it in server.js
This is as compared to /api/users and /api/threads which return all users and all threads respectively.
Additionally, the tutorial actually recommends testing api and posts services using that url.

The fix is easy...add this to ./3-microservices/services/server.js and /2-containerized/services/api/server.js

router.get('/api/posts', function *() {
  this.body = db.posts;
});

I have done this in a fork (as well as correcting a spelling error).

Docker login no response

First I try the output from aws-cli
Got need to use --password-stdin
I change -p to --password-stdin it still not work
Snipaste_2019-05-16_01-26-56

Node dependencies

It looks like they way your instructions are written you are expecting a node_modules folder to be present in the local directory so that it gets packaged into the container image. As it stands if you clone the repo and then build the image it will not run because npm install has not yet been run. I would suggest either:

  1. Update the instructions to have the user run npm install before they docker build so that node_modules gets created. This would obviously also require the user to have Node.js installed on their local workstation, so this leads me to option 2.

  2. Add a RUN npm install instruction to your Dockerfile

Unless it's in there and I just missed it - but two people on my team experienced an ERROR 503 when running the app.

Oh, and, this is a great tutorial. Well done!

Problems with ecs.yml

My students ran into a problem creating a CloudFormation stack with the latest version of ecs.yml.
It seems that AWS Educate accounts cannot execute the GetParameter call.
AccessDenied. User doesn't have permission to call ssm:GetParameters

An earlier version that I downloaded used mappings for the AMIs and does not have this problem. Can you change this back?

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.