Skip to content

Commit 6eb4ae7

Browse files
author
Christopher M. Neill
committed
Submitting for PR.
1 parent 9b6b6c6 commit 6eb4ae7

2 files changed

Lines changed: 109 additions & 2 deletions

File tree

ansible/roles/ec2/sg_configure/tasks/main.yml

Lines changed: 97 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from_port: 22
1818
to_port: 22
1919
cidr_ip: 0.0.0.0/0
20-
rules_egress:
2120
- proto: all
2221
from_port: -1
2322
to_port: -1
@@ -401,14 +400,15 @@
401400
from_port: 22
402401
to_port: 22
403402
group_id: "{{ sg_bastion }}"
403+
- proto: tcp
404+
from_port: 5432
404405
to_port: 5432
405406
group_id: "{{ sg_services }}"
406407
rules_egress:
407408
- proto: all
408409
from_port: -1
409410
to_port: -1
410411
group_id: "{{ sg_rds }}"
411-
- proto: tcp
412412

413413
- name: Redis SG
414414
tags:
@@ -549,3 +549,98 @@
549549
from_port: 8500
550550
to_port: 8500
551551
group_id: "{{ sg_web }}"
552+
- proto: tcp
553+
from_port: 32768
554+
to_port: 65535
555+
group_id: "{{ sg_dock }}"
556+
- proto: tcp
557+
from_port: 32768
558+
to_port: 65535
559+
group_id: "{{ sg_hipache }}"
560+
- proto: tcp
561+
from_port: 32768
562+
to_port: 63353
563+
group_id: "{{ sg_services }}"
564+
rules_egress:
565+
- proto: all
566+
from_port: -1
567+
to_port: -1
568+
group_id: "{{ sg_services }}"
569+
570+
- name: Userland Hipache
571+
tags:
572+
- userland
573+
ec2_group:
574+
name: "{{ env }}-userland"
575+
description: "{{ env }} Userland Hipache Security Policy"
576+
vpc_id: "{{ vpc_id }}"
577+
region: us-west-2
578+
aws_secret_key: "{{ aws_secret_key }}"
579+
aws_access_key: "{{ aws_access_key }}"
580+
rules:
581+
- proto: tcp
582+
from_port: 80
583+
to_port: 65535
584+
cidr_ip: 0.0.0.0/0
585+
586+
- name: Web
587+
tags:
588+
- web
589+
ec2_group:
590+
name: "{{ env }}-web"
591+
description: "{{ env }} Web Security Policy"
592+
vpc_id: "{{ vpc_id }}"
593+
region: us-west-2
594+
aws_secret_key: "{{ aws_secret_key }}"
595+
aws_access_key: "{{ aws_access_key }}"
596+
rules:
597+
- proto: tcp
598+
from_port: 22
599+
to_port: 22
600+
cidr_ip: 0.0.0.0/0
601+
- proto: tcp
602+
from_port: 8200
603+
to_port: 8200
604+
group_id: "{{ sg_api }}"
605+
- proto: tcp
606+
from_port: 8200
607+
to_port: 8200
608+
group_id: "{{ sg_services }}"
609+
- proto: tcp
610+
from_port: 8300
611+
to_port: 8302
612+
group_id: "{{ sg_api }}"
613+
- proto: tcp
614+
from_port: 8300
615+
to_port: 8302
616+
group_id: "{{ sg_services }}"
617+
- proto: tcp
618+
from_port: 8400
619+
to_port: 8400
620+
group_id: "{{ sg_api }}"
621+
- proto: tcp
622+
from_port: 8400
623+
to_port: 8400
624+
group_id: "{{ sg_services }}"
625+
- proto: tcp
626+
from_port: 8500
627+
to_port: 8500
628+
group_id: "{{ sg_api }}"
629+
- proto: tcp
630+
from_port: 8500
631+
to_port: 8500
632+
group_id: "{{ sg_services }}"
633+
- proto: tcp
634+
from_port: 32768
635+
to_port: 65535
636+
group_id: "{{ sg_api }}"
637+
- proto: tcp
638+
from_port: 32768
639+
to_port: 65535
640+
group_id: "{{ sg_hipache }}"
641+
rules_egress:
642+
- proto: all
643+
from_port: -1
644+
to_port: -1
645+
group_id: "{{ sg_web }}"
646+

ssh/config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,18 @@ Host delta-hipache
332332
Host delta-navi
333333
ProxyCommand ssh -q ubuntu@delta-bastion nc 10.8.6.41 22
334334

335+
Host delta-mongo-a
336+
ProxyCommand ssh -q ubuntu@delta-bastion nc 10.8.4.216 22
337+
338+
Host delta-mongo-b
339+
ProxyCommand ssh -q ubuntu@delta-bastion nc 10.8.10.254 22
340+
341+
Host delta-mongo-b
342+
ProxyCommand ssh -q ubuntu@delta-bastion nc 10.8.15.34 22
343+
344+
Host delta-navi
345+
ProxyCommand ssh -q ubuntu@delta-bastion nc 10.8.6.41 22
346+
335347
################################################################################
336348
# other
337349
################################################################################

0 commit comments

Comments
 (0)