- Requirements
- python: +3.8
- node +18
- java 20.0.2
Note: if you need manage diferent versions of node, you may use nvm:
-
Configure python environment 2.1 Create python .env: python -m venv c:\path\to\myenv 2.1 Activate python env (windows): . venv/Scripts/activate
-
Configure dependencies and dynamodb local dependencie: 3.1 Npm install 3.2 pip install -r requirements.txt 3.3 serverless dynamodb install -> https://www.npmjs.com/package/serverless-dynamodb
-
Upload service.yml in Cloudformation to create the role who going to admin all resources inside project
-
Configure IAM Role session aws sts assume-role --role-arn arn:aws:iam::${{AWS_ACCOUNT_DEV_ID}}:role/campaigns-module-hg-permissions-DeployerRole-${{DEPLOYER_ROLE_ID}} --role-session-name=gha_deployer --profile current-aws-profile
-
with the result given by the previous step, configure .env file: AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_SESSION_TOKEN=
-
serverless offline start --reloadHandler