diff --git a/AWS-EC2.md b/AWS-EC2.md index 57d91ac..29e6369 100644 --- a/AWS-EC2.md +++ b/AWS-EC2.md @@ -18,6 +18,8 @@ Using the AWS CLI you can copy and paste the commands below to auto create every ```bash aws ec2 create-security-group --group-name StatupPublicHTTP --description "Statup HTTP Server on port 80 and 443" # will response back a Group ID. Copy ID and use it for --group-id below. +``` +```bash 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 ```