From a37f2880c0eed9393e2fcc5e460db7a846a0ea42 Mon Sep 17 00:00:00 2001 From: Marwan Zouinkhi Date: Thu, 6 Jun 2024 10:10:32 -0400 Subject: [PATCH] fix doc formatting --- docs/source/aws.rst | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/docs/source/aws.rst b/docs/source/aws.rst index 7654ca0d6..e0afb0fca 100644 --- a/docs/source/aws.rst +++ b/docs/source/aws.rst @@ -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 \ - --security-groups \ - --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 ===================