Skip to content

Commit

Permalink
fix doc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mzouink committed Jun 6, 2024
1 parent 04c45fe commit a37f288
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions docs/source/aws.rst
Original file line number Diff line number Diff line change
@@ -1,43 +1,3 @@

AWS EC2 Setup Guide
===================

This guide will help you to run your Docker image on an AWS EC2 instance and set up S3 access for storing data.

Running Docker Image on AWS EC2
-------------------------------

To run your Docker image on an AWS EC2 instance, follow these steps:

1. **Create Key Pair** (if you don't have one already):
```bash
aws ec2 create-key-pair --key-name MyKeyPair --query 'KeyMaterial' --output text > MyKeyPair.pem
chmod 400 MyKeyPair.pem
```
This command creates a new key pair named `MyKeyPair` and
saves the private key to a file named `MyKeyPair.pem`.
with the appropriate permissions.

2. **Launch EC2 Instance**:
```bash
aws ec2 run-instances \
--image-id ami-0b8956f13d7bdfe7b \
--count 1 \
--instance-type p3.2xlarge \
--key-name <YOUR_KEY_PAIR> \
--security-groups <YOUR_SECURITY_GROUP> \
--user-data '#!/bin/bash
yum update -y
amazon-linux-extras install docker -y
service docker start
docker pull mzouink/dacapo:0.3.0
docker run -d -p 80:8000 mzouink/dacapo:0.3.0'
```
This command launches a new EC2 instance with the specified AMI, instance type, and key pair.




AWS EC2 Setup Guide
===================

Expand Down

0 comments on commit a37f288

Please sign in to comment.