-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
130 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Use the `python:3.7` as a source image from the Amazon ECR Public Gallery | ||
# We are not using `python:3.7.2-slim` from Dockerhub because it has put a pull rate limit. | ||
FROM public.ecr.aws/sam/build-python3.7:latest | ||
|
||
# Set up an app directory for your code | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
# Install `pip` and needed Python packages from `requirements.txt` | ||
RUN pip install --upgrade pip | ||
RUN pip install -r requirements.txt | ||
|
||
# Define an entrypoint which will run the main app using the Gunicorn WSGI server. | ||
ENTRYPOINT ["gunicorn", "-b", ":8080", "main:APP"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement":[{ | ||
"Effect": "Allow", | ||
"Action": ["eks:Describe*", "ssm:GetParameters"], | ||
"Resource":"*" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
pyjwt==1.7.1 | ||
flask==1.1.2 | ||
Jinja2<3.0.0 | ||
MarkupSafe<2.0.0 | ||
ruamel.yaml==0.16.5 | ||
itsdangerous==2.0.1 | ||
werkzeug==2.0.3 | ||
gunicorn==20.0.4 | ||
pytest==6.2.2 | ||
pytest==6.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Principal": { | ||
"AWS": "arn:aws:iam::519002666132:root" | ||
}, | ||
"Action": "sts:AssumeRole" | ||
} | ||
] | ||
} |