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

This commit is contained in:
hamilcarBarca17 committed 2023-03-08 16:09:41 -07:00
1 parent 36f64dd1f8
commit f29bb1129d
1 file changed
+5
+5
View File
@@ -117,6 +117,11 @@ verifyPrerequisites() {
exit 1
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
}