mirror of https://github.com/statping/statping
Updated AWS EC2 (markdown)
parent
44fb7babc2
commit
e2843892fc
25
AWS-EC2.md
25
AWS-EC2.md
|
@ -2,7 +2,7 @@ Running Statup on the smallest EC2 server is very quick using the AWS AMI Image.
|
||||||
|
|
||||||
### Current AMI Image ID: `ami-7be8a103`
|
### Current AMI Image ID: `ami-7be8a103`
|
||||||
|
|
||||||
## EC2 Server Features
|
# EC2 Server Features
|
||||||
Running your Statup server on a small EC2 instance is perfect for most users. Below you'll find some commands to get up and running in seconds.
|
Running your Statup server on a small EC2 instance is perfect for most users. Below you'll find some commands to get up and running in seconds.
|
||||||
- Super cheap on the t2.nano (~$4.60 monthly)
|
- Super cheap on the t2.nano (~$4.60 monthly)
|
||||||
- Small usage, 8gb of hard drive
|
- Small usage, 8gb of hard drive
|
||||||
|
@ -12,7 +12,7 @@ Running your Statup server on a small EC2 instance is perfect for most users. Be
|
||||||
- Automatic database cleanup, so you'll never be at 100% full.
|
- Automatic database cleanup, so you'll never be at 100% full.
|
||||||
- Automatic docker containers/images removal
|
- Automatic docker containers/images removal
|
||||||
|
|
||||||
### Create Security Groups
|
## Create Security Groups
|
||||||
Using the AWS CLI you can copy and paste the commands below to auto create everything for you. The server opens port 80 and 443.
|
Using the AWS CLI you can copy and paste the commands below to auto create everything for you. The server opens port 80 and 443.
|
||||||
```bash
|
```bash
|
||||||
aws ec2 create-security-group --group-name StatupPublicHTTP --description "Statup HTTP Server on port 80 and 443"
|
aws ec2 create-security-group --group-name StatupPublicHTTP --description "Statup HTTP Server on port 80 and 443"
|
||||||
|
@ -22,7 +22,7 @@ aws ec2 create-security-group --group-name StatupPublicHTTP --description "Statu
|
||||||
aws ec2 authorize-security-group-ingress --group-id sg-7e8b830f --protocol tcp --port 80 --cidr 0.0.0.0/0
|
aws ec2 authorize-security-group-ingress --group-id sg-7e8b830f --protocol tcp --port 80 --cidr 0.0.0.0/0
|
||||||
aws ec2 authorize-security-group-ingress --group-id sg-7e8b830f --protocol tcp --port 443 --cidr 0.0.0.0/0
|
aws ec2 authorize-security-group-ingress --group-id sg-7e8b830f --protocol tcp --port 443 --cidr 0.0.0.0/0
|
||||||
```
|
```
|
||||||
### 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 \
|
||||||
|
@ -31,7 +31,7 @@ aws ec2 run-instances \
|
||||||
--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
|
||||||
This is an awesome way to do things, start a Statup server with an SSL cert that will automatically regenerate when its near expiration time. You'll need to point your domain's A record (IP address) or CNAME (public DNS endpoint) to use this feature.
|
This is an awesome way to do things, start a Statup server with an SSL cert that will automatically regenerate when its 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
|
```bash
|
||||||
wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/ec2-ssl.sh
|
wget https://raw.githubusercontent.com/hunterlong/statup/master/servers/ec2-ssl.sh
|
||||||
|
@ -52,7 +52,7 @@ aws ec2 run-instances \
|
||||||
--security-group-ids sg-7e8b830f
|
--security-group-ids sg-7e8b830f
|
||||||
```
|
```
|
||||||
|
|
||||||
#### EC2 Server Specs
|
### EC2 Server Specs
|
||||||
- t2.nano ($4.60 monthly)
|
- t2.nano ($4.60 monthly)
|
||||||
- 8gb SSD Memory
|
- 8gb SSD Memory
|
||||||
- 0.5gb RAM
|
- 0.5gb RAM
|
||||||
|
@ -60,18 +60,3 @@ aws ec2 run-instances \
|
||||||
- Running Statup, NGINX, and Postgres
|
- Running Statup, NGINX, and Postgres
|
||||||
- boot scripts to automatically clean unused containers.
|
- boot scripts to automatically clean unused containers.
|
||||||
|
|
||||||
|
|
||||||
## AWS EC2 (`ami-1f7c3567`)
|
|
||||||
Running Statup on the smallest EC2 server is very quick using the AWS AMI Image: `ami-1f7c3567`.
|
|
||||||
```
|
|
||||||
aws ec2 run-instances \
|
|
||||||
--image-id ami-1f7c3567 \
|
|
||||||
--count 1 \
|
|
||||||
--instance type t2.micro \
|
|
||||||
--region us-west-2
|
|
||||||
--key-name <key name> \
|
|
||||||
--security-group-ids <your security group id here> \
|
|
||||||
--subnet-id <your subnet id here> \
|
|
||||||
--region <your region here>
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue