PiotrJustyna / hello-cdk

Just a simple repository to explore cdk with .net/f#. The goal is to deploy an f# web api to aws ecs with cdk.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

readme

Just a simple repository to explore cdk with .net/f#. The goal is to deploy an f# web api to aws ecs with cdk.

web api

The api is written in f# and dockerized. To quickly run it, run the run.sh file which will build the image and run its container. The application can be accessed on localhost:5432/helloworld.

prerequisites

This repository was written for mac os, but installation on other operating systems should not be much different.

  • install aws deploy: dotnet tool install -g aws.deploy.cli (source)
  • install node.js (source)

the experiment

  • authenticate with aws
  • run dotnet aws deploy
  • choose the name of your stack
  • choose deployment options (we are going to chose ecs)
  • [TODO] we're going to have to change some advanced settings as it looks like the application gets automatically deployed to fargate while our preference is ec2
  • [TODO] looks like aws deploy uses cloudformation by default

reading

About

Just a simple repository to explore cdk with .net/f#. The goal is to deploy an f# web api to aws ecs with cdk.


Languages

Language:F# 88.1%Language:Shell 11.9%