AWS CDK on Scala
A Giter8 template for deploying a web application implemented by Scala to AWS Fargate.
- JDK 11
- Node.js 14.x
- Docker 19.03.x
$ sbt new NomadBlacky/aws-cdk-scala_fargate-simple-web-app.g8
$ cd your-created-repository
$ npm install
$ npx cdk deploy
(When the deployment is successful)
โ
WebServerStack
Outputs:
WebServerStack.FargateLoadBalancerDNSXXXXXXXX = WebSe-Farga-XXXXXXXXXXCC-0123456789.ap-northeast-1.elb.amazonaws.com
WebServerStack.FargateServiceURLXXXXXXXX = http://WebSe-Farga-XXXXXXXXXXXX-0123456789.ap-northeast-1.elb.amazonaws.com
Open the URL of WebServerStack.FargateServiceURLXXXXXXXX
in Outputs
.
$ npx cdk destroy