version: 0.2 phases: install: commands: - echo " --Python has some SSL issues in this version so we force an upgrade which doesn't fix everything; don't be alarmed by the warnings." build: commands: - echo "S3 Upload Beginning" - python -V - export ACCID=$(aws sts get-caller-identity --query 'Account' | tr -d '"') - aws s3 sync . s3://$STAGING_BUCKET/ --delete --exclude "*" --include "*.json" --include "*.yml" --include "*.yaml" - echo "S3 Upload Complete, updating cloudformation now..." - aws cloudformation create-stack-set --stack-set-name aws-backupcompliance-framework --template-url "https://$STAGING_BUCKET.s3.amazonaws.com/aws-backupcompliance-framework.yaml" --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND - aws cloudformation create-stack-instances --stack-set-name aws-backupcompliance-framework --accounts [accountid] --regions [awsregion] post_build: commands: - echo "Deploy complete"