Preparation

Prerequisites

Before starting this workshop, ensure you have:

1. AWS Account

  • Active AWS Account with Administrator access
  • Recommended: Use IAM User instead of Root account
  • Region: Asia Pacific (Singapore) - ap-southeast-1

2. Local Development Tools

ToolVersionPurpose
Node.js>= 18.xRun Lambda functions locally
npm/yarnLatestPackage management
AWS CLI>= 2.xInteract with AWS services
GitLatestVersion control

3. Knowledge Requirements

  • Basic understanding of AWS services (VPC, EC2, S3)
  • Familiarity with REST APIs
  • Basic Node.js/JavaScript or Python
  • Basic React knowledge

Step 1: Configure AWS CLI

  1. Install AWS CLI from AWS CLI Installation Guide

  2. Configure credentials:

aws configure
  1. Enter your credentials:
AWS Access Key ID: [Your Access Key]
AWS Secret Access Key: [Your Secret Key]
Default region name: ap-southeast-1
Default output format: json
  1. Verify configuration:
aws sts get-caller-identity

Step 2: Create IAM User for Workshop

  1. Go to IAM ConsoleUsersCreate user

  2. User details:

    • User name: workshop-admin
    • Select: Provide user access to the AWS Management Console
  3. Set permissions:

    • Select: Attach policies directly
    • Search and select: AdministratorAccess
  4. Create user and save credentials securely

⚠️ Security Note: After completing the workshop, delete this IAM user or remove AdministratorAccess policy.


Step 3: Verify Service Quotas

Ensure your account has sufficient quotas for:

ServiceResourceMinimum Required
VPCVPCs per Region1
VPCSubnets per VPC4
VPCNAT Gateways per AZ1
RDSDB Instances1
LambdaConcurrent Executions10
API GatewayREST APIs1
S3Buckets2

Check quotas at: Service Quotas Console → Select service → View quotas


Step 4: Prepare Source Code

  1. Clone the sample repository:
git clone https://github.com/your-repo/daivietblood-workshop.git
cd daivietblood-workshop
  1. Project structure:
daivietblood-workshop/
├── frontend/           # React application
│   ├── src/
│   └── package.json
├── backend/            # Lambda functions
│   ├── functions/
│   └── package.json
├── infrastructure/     # CloudFormation templates
│   └── templates/
└── README.md
  1. Install dependencies:
# Frontend
cd frontend && npm install

# Backend
cd ../backend && npm install

Step 5: Cost Estimation

ServiceConfigurationEst. Cost/Day
NAT Gateway1 NAT Gateway~$1.08
RDSdb.t3.micro~$0.52
LambdaFree Tier$0.00
API GatewayFree Tier$0.00
S3< 5GB~$0.01
CloudFront< 1GB transfer~$0.01
AmplifyBuild & Host~$0.50

Total estimated: ~$2-3/day

💡 Tip: Complete the workshop in 1-2 days and clean up resources immediately to minimize costs.


Checklist Before Starting

  • AWS Account ready with Administrator access
  • AWS CLI installed and configured
  • Node.js >= 18.x installed
  • Git installed
  • Source code cloned
  • Region set to ap-southeast-1