The DevOps Workshop Game is a full-stack, cloud-native Rock Paper Scissors application designed to demonstrate infrastructure as code (IaC) and CI/CD pipelines. This project features a React/Vite frontend and an AWS CDK-powered backend that fully automates the provisioning of S3 buckets, CloudFront CDN, and a CodePipeline for continuous deployment.
To deploy and work with this project, you will need the following tools:
- Node.js (v20 or higher recommended)
- AWS CLI (configured with your AWS account credentials)
- AWS CDK (
npm install -g aws-cdk) - Git
To set up the project locally:
- Clone the repository:
git clone <repository-url> cd devops-workshop-game
- Install the AWS CDK dependencies:
npm install
- Update
bin/devops-workshop-game.jswith your AWS Account ID and preferred Region. - Update the GitHub Source Action in
lib/devops-workshop-game-stack.jswith your GitHub username and configure your GitHub token in AWS Secrets Manager asworkshop/github.
To synthesize the CloudFormation template and verify your CDK stack:
npx cdk synthTo deploy the infrastructure and the CodePipeline to your AWS account:
npx cdk deployOnce deployed, any commits pushed to the main branch of your configured repository will automatically trigger the CodePipeline to build the Vite frontend and deploy the updated static assets to your S3 website bucket and CloudFront distribution.