Ian Littman (CTO @ Covie) / @iansltx
Follow along at ian.im/ecsca22
In the vein of keeping things simple, we're using Fargate, both for Covie and here.
FROM php:8.1.6-cli-alpine3.15 WORKDIR /var/app RUN echo '<?= "<h1>Hello " . strip_tags($_GET["to"] ?? $_ENV["to"] ?? "World") . "!</h1>" ?>' > index.php EXPOSE 80 CMD php -d variables_order=EPGCS -S 0.0.0.0:80
aws ecr get-login-password --region REGION \
| docker login --username AWS --password-stdin \
ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com
docker build -t TAG . docker tag TAG:latest \ ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/TAG:latest docker push ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/TAG:latest