From 49b638ce8a122a69848f424d61c5b139bfe91adb Mon Sep 17 00:00:00 2001 From: Abraham Montoya Date: Sun, 9 Jun 2024 14:00:08 -0700 Subject: [PATCH] Promote dev to prod (#6) * ci: add description * ci: add branch name * ci: add env variables * ci: add stage name to stack name * ci: fix bucket name for files name * ci: fix deploy command * ci: update sam pipeline * ci: update sam pipeline * ci: update sam pipeline * ci: update sam pipeline * ci: update template * ci: fix bucket name policy * ci: remove stack name from config and move docker files to docker dir * feat: add route * feat: add new routes * feat: update processing endpoints * feat: delete file * feat: add s3 utility * tests: fix route name * fix: show numbers split by comma * ci: remove unused dependency * feat: rename env variable * ci: increase resources in lambda function * tests: add content type * docs: update readme * chore: add scripts * docs: update readme * tests: add moto dependency * docs: update readme * feat: refactor methods to classes * tests: refactor content builder method * tests: add tests * docs: update command * ci: add security groups for database access * feat: fix imports and email utils usage * feat: add postgres to docker compose * ci: add security groups for database access * ci: add security groups for database access * chore: update files * feat: add database support * tests: update tests * feat: add dependency * feat: update routes * chore: add util * feat: add transactions history section * delete: delete file * feat: add method to get transactions history * tests: update test * ci: disable testing temp * ci: change dependency * ci: remove some dependencies for the app * ci: add requirements file for tests * ci: add tests dependencies * ci: remove file from src * ci: change secrets policy * feat: test secret get method * feat: test secret get method * feat: test secret get method * feat: add logging * ci: test lambda init * ci: test lambda init * feat: remove function to set credentials * feat: remove function to set credentials * feat: remove function to set credentials * chore: test db connection * chore: test db connection * chore: test db connection * chore: test db connection * chore: test db connection * chore: test db connection * chore: test db connection * chore: test db connection * chore: test db connection * chore: test db connection * feat: restore api script * ci: add rds sg * ci: increase timeout lambda time * feat: enable bulk save * add file * tests: add postgres container for tests * tests: add postgres container for tests * tests: add postgres container for tests * tests: add postgres container for tests * tests: add env var * fix: fix typo in env var * ci: set postgres host * feat: add command line interface * ci: configure postgres host * ci: add dependencies * chore: add env var and set new cli * chore: remove print * feat: add exceptions and update docstrings * chore: delete file * feat: update imports * docs: add docstrings * chore: remove comment * docs: update readme * docs: add description * chore: remove email * delete: delete files * ci: update to python 3.12 * ci: set dependency version * docs: update readme * ci: set memory and timeout * ci: test root path * ci: enable all endpoints * ci: add logs * ci: remove logs * feat: remove unused import * feat: move get_db to a separete file as dependency * ci: set aws docker python image * ci: add docker folder to path list --- .github/workflows/sam-pipeline.yml | 1 + docker/Dockerfile.api | 2 +- docker/Dockerfile.app | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sam-pipeline.yml b/.github/workflows/sam-pipeline.yml index fd74f10..c8bb872 100644 --- a/.github/workflows/sam-pipeline.yml +++ b/.github/workflows/sam-pipeline.yml @@ -10,6 +10,7 @@ on: - 'template.yml' - 'samconfig.toml' - 'requirements.txt' + - 'docker/**' jobs: test: diff --git a/docker/Dockerfile.api b/docker/Dockerfile.api index 65971bc..70fed25 100644 --- a/docker/Dockerfile.api +++ b/docker/Dockerfile.api @@ -1,4 +1,4 @@ -FROM python:3.9 +FROM public.ecr.aws/lambda/python:3.12 WORKDIR /code diff --git a/docker/Dockerfile.app b/docker/Dockerfile.app index 81eb313..5b6ef16 100644 --- a/docker/Dockerfile.app +++ b/docker/Dockerfile.app @@ -1,4 +1,4 @@ -FROM python:3.9 +FROM public.ecr.aws/lambda/python:3.12 WORKDIR /code