Skip to content

Instantly share code, notes, and snippets.

@vovanmix
Last active July 11, 2016 17:56
Show Gist options
  • Save vovanmix/ad5970b78c5de7c8a4ea13fd01d37740 to your computer and use it in GitHub Desktop.
Save vovanmix/ad5970b78c5de7c8a4ea13fd01d37740 to your computer and use it in GitHub Desktop.

#SSH Inbound

SSH			TCP			22			0.0.0.0/0

Outbound

All traffic			All			All			0.0.0.0/0

#Load balancer ##or HTTP(S) Inbound

HTTP 			TCP			80			0.0.0.0/0
HTTPS 			TCP			443			0.0.0.0/0

Outbound

All TCP 		TCP 	0 - 65535	0.0.0.0/0

For EC2 it's good to end SSL at load balancer, so just create HTTP group #HTTP behind LB Inbound (1443 is for http -> https redirect)

HTTP              TCP   80    <id of http(s) security group>
Custom TCP Rule   TCP   1443  <id of http(s) security group>

Outbound

All traffic   All   All   0.0.0.0/0

#mysql

Inbound

MYSQL/Aurora    TCP   3306    0.0.0.0/0

Outbound

All TCP 		TCP 	0 - 65535	0.0.0.0/0

#Redis Inbound

All traffic 		Al 		All    0.0.0.0/0

Outbound

All traffic 		All 	All    0.0.0.0/0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment