File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1616 @command -v cdk > /dev/null 2>&1 || { echo " CDK is not installed. Please install CDK and try again." ; exit 1; }
1717 @command -v cdklocal > /dev/null 2>&1 || { echo " cdklocal is not installed. Please install cdklocal and try again." ; exit 1; }
1818 @command -v yarn > /dev/null 2>&1 || { echo " Yarn is not installed. Please install Yarn and try again." ; exit 1; }
19+ @command -v aws > /dev/null 2>&1 || { echo " AWS CLI is not installed. Please install AWS CLI and try again." ; exit 1; }
20+ @command -v awslocal > /dev/null 2>&1 || { echo " awslocal is not installed. Please install awslocal and try again." ; exit 1; }
1921 @echo " All required prerequisites are available."
2022
2123# # Install dependencies
@@ -28,10 +30,12 @@ install:
2830
2931# # Build and deploy the frontend
3032frontend :
31- yarn prepare:frontend-local
32- yarn build-frontend
33- yarn cdklocal bootstrap --app=" node dist/aws-sdk-js-notes-app-frontend.js"
34- yarn cdklocal deploy --app=" node dist/aws-sdk-js-notes-app-frontend.js"
33+ # yarn prepare:frontend-local
34+ # yarn build:frontend
35+ # yarn cdklocal bootstrap --app="node dist/aws-sdk-js-notes-app-frontend.js"
36+ # yarn cdklocal deploy --app="node dist/aws-sdk-js-notes-app-frontend.js"
37+ @distributionId=$$(awslocal cloudfront list-distributions | jq -r '.DistributionList.Items[0].Id' ) && \
38+ echo " Access the frontend at: http://localhost:4566/cloudfront/$$ distributionId/"
3539
3640# # Deploy the infrastructure
3741deploy :
You can’t perform that action at this time.
0 commit comments