-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTEMPLATE_SG.js
20 lines (19 loc) · 876 Bytes
/
TEMPLATE_SG.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// ----------------------------------------------------------------------------------
// This file describes single security group in AWS.
// "info" must have the ID and Name of SG. "rules" array needs all IPs to be allowed.
// in "rules" use "Protocol": "-1" to specify all traffic (from/to port then is '0')
//-----------------------------------------------------------------------------------
var info = {
// ID is what you see in AWS console as security group id
"id": "sg-010101abcd",
"name": "sg name"
};
var rules = [
// HTTPS rules
{ "cidr": "1.1.1.1/24", "FromPort": 443 , "ToPort": 443 , "Protocol": "tcp"},
// All Traffic rule
{ "cidr": "2.2.2.2/27", "FromPort": 0 , "ToPort": 0 , "Protocol": "-1"},
// etc' all based on 2 examples above.
];
var exported = { "info": info, "rules": rules }
module.exports = exported;