Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion 10-databases/visualizer/LAB-VISUALIZER.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ In the AWS Console:

#### Step 4: Wait for the stack to complete

The stack takes about 3-5 minutes to create. Watch the progress in
The stack takes about 5-10 minutes to create (Docker pulls MySQL and
builds the visualizer image on first launch). Watch the progress in
the **Events** tab.

When complete, click the **Outputs** tab to find:
Expand Down
13 changes: 11 additions & 2 deletions 10-databases/visualizer/cloudformation.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
AWSTemplateFormatVersion: "2010-09-09"
Description: >
Lab 10 - Database Scalability Visualizer.
Launches a t3.medium EC2 instance with Docker and Docker Compose
Launches a t3.large EC2 instance with Docker and Docker Compose
pre-installed. Clones the course repository, runs the MySQL
primary-replica cluster and visualizer automatically. SSH and
visualizer web access enabled.
Expand Down Expand Up @@ -32,7 +32,7 @@ Resources:
LabInstance:
Type: AWS::EC2::Instance
Properties:
InstanceType: t3.medium
InstanceType: t3.large
ImageId: !Ref LatestAmiId
KeyName: vockey
SecurityGroupIds:
Expand Down Expand Up @@ -61,6 +61,15 @@ Resources:
-o /usr/local/lib/docker/cli-plugins/docker-compose
chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

# Install Docker Buildx plugin (required by Compose for build)
if [ "${ARCH}" = "x86_64" ]; then BUILDX_ARCH="amd64"; else BUILDX_ARCH="arm64"; fi
BUILDX_VERSION=$(curl -fsSL https://api.github.com/repos/docker/buildx/releases/latest \
| grep '"tag_name"' | head -1 | cut -d'"' -f4)
curl -fsSL \
"https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-${BUILDX_ARCH}" \
-o /usr/local/lib/docker/cli-plugins/docker-buildx
chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx

# Clone the repo and run the visualizer as ec2-user
su - ec2-user -c '
git clone https://github.com/gamaware/system-design-course.git
Expand Down
Loading