diff --git a/deployment/v2/initialize-instance.sh b/deployment/v2/initialize-instance.sh new file mode 100755 index 000000000..f4f599a95 --- /dev/null +++ b/deployment/v2/initialize-instance.sh @@ -0,0 +1,22 @@ +#!/bin/bash +set -euo pipefail + +deployment_dir=$(cd $(dirname $0) && pwd) +source_dir="$deployment_dir/../../source" + +echo "=============================================================================================" +echo "aligning versions and updating package.json for CDK v2..." +/bin/bash $deployment_dir/align-version.sh + +bail="--bail" +runtarget="build+lint+test" +cd $source_dir/ + +export PATH=$source_dir/node_modules/.bin:$PATH +export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}" + + npm install -g @aws-cdk/integ-runner + +echo "=============================================================================================" +echo "installing..." +yarn install --frozen-lockfile