Backup the existing folders
cp -R challenge-day2/ challenge-day2_bkp
cp -R terraform-project/ terraform-project_bkp
Clean up the existing application files expect the Docker, YAML file (Backend)
cd challenge-day2/backend
rm -rf $(find . -mindepth 1 -maxdepth 1 -not \\( -name ".*" -o -name Dockerfile -o -name "*.yaml" \\))
Clean up the existing application files expect the Docker, YAML file (Frontend)
cd challenge-day2/frontend
rm -rf $(find . -mindepth 1 -maxdepth 1 -not \\( -name ".*" -o -name Dockerfile -o -name "*.yaml" \\))
Download the updated source code and unzip it (Backend)
cd challenge-day2/backend
wget <https://tcb-public-events.s3.amazonaws.com/mdac/resources/final/cloudmart-backend-final.zip>
unzip cloudmart-backend-final.zip
Download the updated source code and unzip it (Frontend)
cd challenge-day2/frontend
wget <https://tcb-public-events.s3.amazonaws.com/mdac/resources/final/cloudmart-frontend-final.zip>
unzip cloudmart-frontend-final.zip
git add -A
git commit -m "final code"
git push
Follow these steps to set up Google Cloud BigQuery for CloudMart:
google_credentials.json
.Navigate to the root directory of your project.
Enter the Lambda function directory:
cd challenge-day2/backend/src/lambda/addToBigQuery
Install the required dependencies:
sudo yum install npm
npm install
Edit the google_credentials.json
file in this directory and place the content of your key.
Create a zip file of the entire directory:
zip -r dynamodb_to_bigquery.zip .
This zip file will be used when creating or updating the Lambda function.
Return to the root directory of your project:
cd ../../..