Skip to content

Instantly share code, notes, and snippets.

@innovid-rnd
Created September 4, 2017 19:22
Show Gist options
  • Save innovid-rnd/e4237d8fc01621944d89ebade5dc8ed4 to your computer and use it in GitHub Desktop.
Save innovid-rnd/e4237d8fc01621944d89ebade5dc8ed4 to your computer and use it in GitHub Desktop.
YAML with chef-cluster security group configuration
security_groups:
- name: chef-alb
egress_entries:
- ip_protocol: TCP
from_port: '443'
to_port: '443'
source_security_group: chef-frontend
ingress_entries:
- ip_protocol: TCP
from_port: '80'
to_port: '80'
cidr_ip: 0.0.0.0/0
- ip_protocol: TCP
from_port: '443'
to_port: '443'
cidr_ip: 0.0.0.0/0
- name: chef-frontend
ingress_entries:
- ip_protocol: TCP
from_port: '443'
to_port: '443'
source_security_group: chef-alb
- ip_protocol: TCP
from_port: '22'
to_port: '22'
cidr_ip: 0.0.0.0/0
- name: chef-backend
ingress_entries:
- ip_protocol: TCP
from_port: '5432'
to_port: '5432'
source_security_group: chef-backend
- ip_protocol: TCP
from_port: '5432'
to_port: '5432'
source_security_group: chef-frontend
- ip_protocol: TCP
from_port: '2379'
to_port: '2379'
source_security_group: chef-backend
- ip_protocol: TCP
from_port: '2379'
to_port: '2379'
source_security_group: chef-frontend
- ip_protocol: TCP
from_port: '2380'
to_port: '2380'
source_security_group: chef-backend
- ip_protocol: TCP
from_port: '7331'
to_port: '7331'
source_security_group: chef-frontend
- ip_protocol: TCP
from_port: '9200'
to_port: '9200'
source_security_group: chef-backend
- ip_protocol: TCP
from_port: '9200'
to_port: '9200'
source_security_group: chef-frontend
- ip_protocol: TCP
from_port: '9300'
to_port: '9300'
source_security_group: chef-backend
- ip_protocol: TCP
from_port: '22'
to_port: '22'
cidr_ip: 0.0.0.0/0
- ip_protocol: TCP
from_port: '443'
to_port: '443'
source_security_group: chef-backend
- ip_protocol: TCP
from_port: '443'
to_port: '443'
source_security_group: chef-frontend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment