mirror of https://github.com/statping/statping
Updated AWS EC2 (markdown)
parent
ba5f46f2ac
commit
6c70ef688a
18
AWS-EC2.md
18
AWS-EC2.md
|
@ -30,10 +30,10 @@ aws ec2 authorize-security-group-ingress --group-id sg-7e8b830f --protocol tcp -
|
||||||
## Create EC2 without SSL
|
## 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.
|
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
|
```bash
|
||||||
aws ec2 run-instances \
|
aws ec2 run-instances \
|
||||||
--image-id ami-7be8a103 \
|
--image-id ami-7be8a103 \
|
||||||
--count 1 --instance-type t2.nano \
|
--count 1 --instance-type t2.nano \
|
||||||
--key-name MYKEYHERE \
|
--key-name MYKEYHERE \
|
||||||
--security-group-ids sg-7e8b830f
|
--security-group-ids sg-7e8b830f
|
||||||
```
|
```
|
||||||
## Create EC2 with Automatic SSL Certification
|
## 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
|
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 \
|
aws ec2 run-instances \
|
||||||
--user-data file://ec2-ssl.sh \
|
--user-data file://ec2-ssl.sh \
|
||||||
--image-id ami-7be8a103 \
|
--image-id ami-7be8a103 \
|
||||||
--count 1 --instance-type t2.nano \
|
--count 1 --instance-type t2.nano \
|
||||||
--key-name MYKEYHERE \
|
--key-name MYKEYHERE \
|
||||||
--security-group-ids sg-7e8b830f
|
--security-group-ids sg-7e8b830f
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue