Before starting the deployment, ensure you have the following tools and access ready.
Record these values — you will use them throughout the workshop:
Placeholder Description Example ACCOUNT_IDYour 12-digit AWS Account ID 123456789012REGIONDeployment region ap-southeast-1DEPLOY_BUCKETS3 bucket for Lambda deployment artifact guardscript-deploy-ap-southeast-1
Your AWS user or role must have permissions to create and manage:
Tip: The simplest approach for a workshop environment is
AdministratorAccess.
Install all tools before proceeding.
GuardScript runs on Node.js 20.x (LTS). Required for installing dependencies locally.
node --version # Should output v20.x.x
npm --version
Download: https://nodejs.org
Required for syncing frontend to S3, seeding DynamoDB, and managing resources.
aws --version # Should output aws-cli/2.x.x
Download: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
Configure with your credentials:
aws configure
# AWS Access Key ID: <your-access-key>
# AWS Secret Access Key: <your-secret-key>
# Default region name: ap-southeast-1
# Default output format: json
Required for building and deploying the CloudFormation/SAM infrastructure stack.
sam --version # Should output SAM CLI, version 1.x.x
Download: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html
Required for cloning the repository.
git --version
Clone the project repository, then navigate to the code_protector_aws folder:
git clone <repository-url>
cd code_protector_aws
Key directories:
code_protector_aws/
src/ ← Lambda source code (Node.js)
frontend/ ← Static frontend assets
infra/
template.yaml ← AWS SAM / CloudFormation template
Before proceeding to Phase 1, verify:
node --version outputs v20.x.xaws --version outputs aws-cli/2.x.xsam --version outputs a valid versionaws sts get-caller-identity returns your account ID and ARNcode_protector_aws/ folder is accessible