version: 0.2 phases: install: runtime-versions: python: 3.7 commands: - echo Entered the install phase... - echo About to build $RESOURCE_PATH - export PATH="/usr/local/bin:$PATH" - /usr/local/bin/dockerd-entrypoint.sh - cat /var/log/docker.log - ENTRY_PATH=$(python scripts/entry.py $RESOURCE_PATH/.rpdk-config) - echo ENTRY_PATH is $ENTRY_PATH - BUILD_FILE_NAME=$(cat ENTRY_PATH | sed s/_/-/g) - BUILD_FILE_NAME="${BUILD_FILE_NAME}.zip" - pip install git+https://github.com/aws-cloudformation/cloudformation-cli.git@master - pip install git+https://github.com/aws-cloudformation/cloudformation-cli-python-plugin.git@master - cd $RESOURCE_PATH - cfn --version - sam --version build: commands: - echo Entered the build phase... - cfn validate - cfn generate - ../../release/deregister-all.sh us-east-1 RESOURCE - cfn submit --set-default - INTEG_STACK_NAME="integ-$(echo $ENTRY_PATH | sed s/_/-/g)" - rain deploy test/integ.yml $INTEG_STACK_NAME -y finally: - cat rpdk.log - rain rm $INTEG_STACK_NAME -y artifacts: files: - $BUILD_FILE_NAME name: extensions-build