Skip to content

Instantly share code, notes, and snippets.

Avatar

Takato Horikoshi takat0-h0rikosh1

View GitHub Profile
View create-ecs-service-with-alb-command
$ aws ecs create-service \
--cluster claster_name \
--service-name service_name \
--task-definition task_def_name \
--load-balancers "targetGroupArn=target_group_arn,containerName=container_name,containerPort=container_port" \
--desired-count 1 \
--launch-type FARGATE \
--platform-version LATEST \
--network-configuration "awsvpcConfiguration={subnets=[subnet-xxx,subnet-xxx,subnet-xxx],securityGroups=[sg-xxx,sg-xxx],assignPublicIp=DISABLED}"
View GetAnimalsApplication.scala
import cats.{Applicative, Monad, MonadError, ~>}
import cats.implicits._
import cats.data.{EitherT, Kleisli}
import com.softwaremill.macwire._
import monix.eval.Task
import scalikejdbc.{AutoSession, DB, DBSession}
import scala.concurrent.Await
import scala.concurrent.duration._