diff --git a/cloud-gaming.sh b/cloud-gaming.sh index 99389cf..97eb082 100755 --- a/cloud-gaming.sh +++ b/cloud-gaming.sh @@ -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 }