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 ===================