Updated AWS EC2 (markdown)

master
Hunter Long 2018-07-20 15:54:52 -07:00
parent ba5f46f2ac
commit 6c70ef688a
1 changed files with 9 additions and 9 deletions

@ -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
```