mirror of https://github.com/statping/statping
Removed HTTPS portion since ec2-ssl.sh file is no longer available at the supplied link.
parent
709da0711c
commit
75c3162f25
25
AWS-EC2.md
25
AWS-EC2.md
|
@ -69,31 +69,6 @@ aws ec2 run-instances \
|
||||||
--key-name $KEY \
|
--key-name $KEY \
|
||||||
--security-group-ids $GROUPS
|
--security-group-ids $GROUPS
|
||||||
```
|
```
|
||||||
## Create EC2 with Automatic SSL Certification
|
|
||||||
Start a Statping server with an SSL cert that will automatically regenerate when it's near expiration time. You'll need to point your domain's A record (IP address) or CNAME (public DNS endpoint) to use this feature.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget https://raw.githubusercontent.com/statping/statping/master/dev/ec2-ssl.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
# edit the contents inside of ec2-ssl.sh then continue
|
|
||||||
LETSENCRYPT_HOST="status.MYDOMAIN.com"
|
|
||||||
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
|
|
||||||
```
|
|
||||||
GROUPS=sg-7e8b830f
|
|
||||||
AMI_IMAGE=ami-7be8a103
|
|
||||||
KEY=MYKEYHERE
|
|
||||||
|
|
||||||
aws ec2 run-instances \
|
|
||||||
--user-data file://ec2-ssl.sh \
|
|
||||||
--image-id $AMI_IMAGE \
|
|
||||||
--count 1 --instance-type t2.nano \
|
|
||||||
--key-name $KEY \
|
|
||||||
--security-group-ids $GROUPS
|
|
||||||
```
|
|
||||||
|
|
||||||
### EC2 Server Specs
|
### EC2 Server Specs
|
||||||
- t2.nano ($4.60 monthly)
|
- t2.nano ($4.60 monthly)
|
||||||
|
|
Loading…
Reference in New Issue