Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
Small typo fix, make a chunk of commands easier to copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
teancom authored Dec 11, 2018
1 parent 61dc25b commit 283c2b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions standing_up_hosts_on_ec2.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ We will add these as Ingress to our Security Group and assign this SecurityGroup
So, let's add Ingress rules to this Security Group

```
$ aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 22 --cidr 0.0.0.0/0
$ aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol icmp --port -1 --cidr 0.0.0.0/0
$ aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 443 --cidr 0.0.0.0/0
$ aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 8443 --cidr 0.0.0.0/0
$ aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 80 --cidr 0.0.0.0/0
$ aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 9090 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 22 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol icmp --port -1 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 443 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 8443 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 80 --cidr 0.0.0.0/0
aws ec2 authorize-security-group-ingress --group-id $EC2_SECURITY_GROUP_ID --protocol tcp --port 9090 --cidr 0.0.0.0/0
```

We won't assign nodes to the above security group. Hence they will be assigned default security group.
Expand Down Expand Up @@ -794,7 +794,7 @@ $ aws ec2 describe-instances --filters "Name=tag:Owner,Values=veer"
```


#### Capture all you environment variables
#### Capture all your environment variables

Run `env` as shown below. This will be useful if you ever close your CLI window. Also these are useful when you want to clean up your cluster.

Expand Down

0 comments on commit 283c2b9

Please sign in to comment.