codecheck2 icon indicating copy to clipboard operation
codecheck2 copied to clipboard

Use AWS equivalent of Google Cloud Run

Open cayhorstmann opened this issue 1 year ago • 7 comments

Find the best AWS equivalent of Google Cloud Run. It should be able to run a Docker container, shutting down when there are no active requests. Deploy the comrun service first, then play-codecheck.

cayhorstmann avatar Jun 23 '24 06:06 cayhorstmann

Hi! I will be working on this issue

kn15235 avatar Jun 25 '24 17:06 kn15235

About your questions:

When you and I did steps, it may be that resources were tagged with two sets of user accounts. Delete all prior resources. Then try to create everything with your user account, and see that the arn all have your user id. In that case, you can then use

ACCOUNT_ID=$(aws sts get-caller-identity --query "Account" --output text)

in the instructions.

With REGION, point readers to the page with the regions that have AppRunner and tell them to set REGION to a specific region if the one returned from REGION=$(aws configure get region) isn't the right one.

cayhorstmann avatar Jul 12 '24 16:07 cayhorstmann

You asked about the ECR tags. latest is what is used by Docker locally, so that's fine. But you need to decide: Do you want two ECR repos, each with tag latest, or do you want one, with tags comrun_latest and play-codecheck_latest. Either approach will work.

cayhorstmann avatar Jul 12 '24 16:07 cayhorstmann

You need to provide CLI instructions to construct that AppRunnerECRAccessRole. You followed some blog to do that. Once you do that, its arn will be arn:aws:iam::$ACCOUNT_ID:role/service-role/AppRunnerECRAccessRole

cayhorstmann avatar Jul 12 '24 16:07 cayhorstmann