Added step to install CDK if it's not already installed

This commit is contained in:
hamilcarBarca17
2023-03-08 16:09:41 -07:00
parent 36f64dd1f8
commit f29bb1129d
+5
View File
@@ -117,6 +117,11 @@ verifyPrerequisites() {
exit 1 exit 1
fi fi
if ! (hash cdk 2> /dev/null); then
printWarn "CDK is not installed. Installing now..." true
echo "$SUDO_PASSWORD" | sudo -k -S npm -g install aws-cdk@latest
fi
checkAwsProfile checkAwsProfile
} }