/ecs-servicediscovery-cdk

Primary LanguageJavaScriptApache License 2.0Apache-2.0

A service discovery sample for Lambda and ECS architecture

Architecture Diagram

ECS Service Discovery Architecture

Install CDK and project dependencies

$ yarn global add cdk
$ yarn

Bootstrap and Deploy

$ cdk bootstrap
$ cdk -c namespace=whatevernamespace.local -O outputs.json deploy

Test

$ curl -i $(cat outputs.json | jq -r ".\"ecs-servicediscovery-stack-dev\".ApiEndpoint")

Expected respond

{"time":*unix epoch*}