version: 0.2 phases: install: commands: # Upgrade AWS CLI to the latest version - pip install -r requirements.txt -t . - pip install --upgrade awscli pre_build: commands: # Discover and run unit tests in the 'tests' directory. For more information, see - python -m unittest discover tests build: commands: # Use AWS SAM to package the application by using AWS CloudFormation - aws cloudformation package --template template.yml --s3-bucket $S3_BUCKET --output-template template-export.yml artifacts: type: zip files: - template-export.yml