From 5b28f1d91360d1eb2890e97b5063d5e1226fbfcc Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Mon, 10 Jun 2024 01:21:41 -0700 Subject: [PATCH] add aws apprunner cli example --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index ea91679..82d8939 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,23 @@ First you need to upload the Docker image to ECR - [Instructions](https://docs.a Create App Runner service using the uploaded image using the AWS Console or CLI. +[AWS Console](https://console.aws.amazon.com/apprunner/home#/create) + +```shell +aws apprunner create-service --service-name my-app-runner-service --source-configuration '{ + "ImageRepository": { + "ImageIdentifier": ".dkr.ecr..amazonaws.com/wrp:latest", + "ImageRepositoryType": "ECR", + "ImageConfiguration": {"Port": "8000"}, + "AutoDeploymentsEnabled": true + } +}' --instance-configuration '{ + "Cpu": "1024", + "Memory": "2048", + "InstanceRoleArn": "arn:aws:iam:::role/AppRunnerECRAccessRole" +}' +``` + ## Azure Container Instances [Azure Console](https://portal.azure.com/#create/Microsoft.ContainerInstances)