diff --git a/AWS-EC2.md b/AWS-EC2.md index 17c1077..74f1be7 100644 --- a/AWS-EC2.md +++ b/AWS-EC2.md @@ -30,10 +30,10 @@ aws ec2 authorize-security-group-ingress --group-id sg-7e8b830f --protocol tcp - ## Create EC2 without SSL Once your server has started, go to the EC2 Public DNS endpoint. You should be redirected to /setup to continue your installation process! The database information is already inputed for you. ```bash -aws ec2 run-instances \ - --image-id ami-7be8a103 \ - --count 1 --instance-type t2.nano \ - --key-name MYKEYHERE \ +aws ec2 run-instances \ + --image-id ami-7be8a103 \ + --count 1 --instance-type t2.nano \ + --key-name MYKEYHERE \ --security-group-ids sg-7e8b830f ``` ## Create EC2 with Automatic SSL Certification @@ -49,11 +49,11 @@ LETSENCRYPT_EMAIL="noreply@MYEMAIL.com" ``` Edit ec2-ssl.sh and insert your domain you want to use, then run command below. Use the Security Group ID that you used above for --security-group-ids ``` -aws ec2 run-instances \ - --user-data file://ec2-ssl.sh \ - --image-id ami-7be8a103 \ - --count 1 --instance-type t2.nano \ - --key-name MYKEYHERE \ +aws ec2 run-instances \ + --user-data file://ec2-ssl.sh \ + --image-id ami-7be8a103 \ + --count 1 --instance-type t2.nano \ + --key-name MYKEYHERE \ --security-group-ids sg-7e8b830f ```