Cloned from the template-business-service at: 2021-04-04 08:36:33
Last updated at: 2021-04-04 08:36:33
You should install the following tools before starting to work
- Install Python 3.7.+
- Install pipenv for python dependency management
- zsh shell (MacOS):
pip install pipenv echo export PIPENV_VENV_IN_PROJECT=true >> ~/.zshrc
- bash shell (Linux):
pip install pipenv echo export PIPENV_VENV_IN_PROJECT=true >> ~/.bashrc
- Install AWS SAM
brew tap aws/tap brew install aws-sam-cli
- Node.js download and install from: https://nodejs.org/en/download Then configure npm proxy
- Install AWS CDK
npm install -g aws-cdk
-
Use "Self-Service" Jenkins job in order to create template job and repository
-
Load your github.com ssh key in order to resolve dependencies next step
ssh-add ~/.ssh/id_rsa
-
Install dependencies
pipenv install --dev
-
Enter virtual env by:
pipenv shell
-
Retrieve AWS token for one day, execute the following:
saml2aws login
For more info go to https://github.com/Versent/saml2aws
In order to deploy infra-library CloudFormation stack resources for example: KMS, S3
python deploy.py
Clean deployment, will remove the old stack from CloudFormation
python deploy.py --clean
In order to delete the CloudFormation stack deployed in the last step:
python env_destroy.py
Execute lint on your code:
pylint <root-package/filename> -E