Skip to content

Commit

Permalink
app runner
Browse files Browse the repository at this point in the history
  • Loading branch information
omenking committed Apr 14, 2024
1 parent 3e616fc commit 5a7b717
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apprunner/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```sh
aws apprunner create-service --cli-input-json file://input.json --region us-east-1
```
19 changes: 19 additions & 0 deletions apprunner/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"ServiceName": "app-python",
"SourceConfiguration": {
"AuthenticationConfiguration": {
"AccessRoleArn": "arn:aws:iam::982383527471:role/service-role/AppRunnerECRAccessRole"
},
"ImageRepository": {
"ImageIdentifier": "982383527471.dkr.ecr.us-east-1.amazonaws.com/app:latest",
"ImageConfiguration": {
"Port": "4567"
},
"ImageRepositoryType": "ECR"
}
},
"InstanceConfiguration": {
"Cpu": "0.25 vCPU",
"Memory": "1 GB"
}
}
2 changes: 1 addition & 1 deletion ecr/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ docker push 982383527471.dkr.ecr.ca-central-1.amazonaws.com/python:3.13.0a6-slim
> Update the Dockerfile to reference our python image in ECR
```sh
docker build -t app .
docker build -t app ./app
docker tag app:latest 982383527471.dkr.ecr.ca-central-1.amazonaws.com/app:latest
docker push 982383527471.dkr.ecr.ca-central-1.amazonaws.com/app:latest
```
3 changes: 3 additions & 0 deletions ecr/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ WORKDIR /app
# this contains the libraries want to install to run the app
COPY requirements.txt requirements.txt

# This is just junk
COPY Readme.md Readme.md

# Inside Container
# Install the python libraries used for the app
RUN pip3 install -r requirements.txt
Expand Down
1 change: 1 addition & 0 deletions ecr/app/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello!

0 comments on commit 5a7b717

Please sign in to comment.