Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-security-group
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-security-group
Commits
62cd2fe6
Unverified
Commit
62cd2fe6
authored
Feb 17, 2019
by
Anton Babenko
Committed by
GitHub
Feb 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #104 from mvasilenko/add-mongodb-cluster-rules
add rules for MongoDB cluster ports
parents
02db299b
8f9df085
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
auto_values.tf
modules/mongodb/auto_values.tf
+1
-1
rules.tf
rules.tf
+4
-2
No files found.
modules/mongodb/auto_values.tf
View file @
62cd2fe6
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
variable
"auto_ingress_rules"
{
variable
"auto_ingress_rules"
{
description
=
"List of ingress rules to add automatically"
description
=
"List of ingress rules to add automatically"
type
=
"list"
type
=
"list"
default
=
[
"mongodb-tcp"
]
default
=
[
"mongodb-
27017-tcp"
,
"mongodb-27018-tcp"
,
"mongodb-27019-
tcp"
]
}
}
variable
"auto_ingress_with_self"
{
variable
"auto_ingress_with_self"
{
...
...
rules.tf
View file @
62cd2fe6
...
@@ -68,7 +68,9 @@ variable "rules" {
...
@@ -68,7 +68,9 @@ variable "rules" {
memcached
-
tcp
=
[
11211
,
11211
,
"tcp"
,
"Memcached"
]
memcached
-
tcp
=
[
11211
,
11211
,
"tcp"
,
"Memcached"
]
# MongoDB
# MongoDB
mongodb
-
tcp
=
[
27017
,
27017
,
"tcp"
,
"MongoDB"
]
mongodb
-
27017
-
tcp
=
[
27017
,
27017
,
"tcp"
,
"MongoDB"
]
mongodb
-
27018
-
tcp
=
[
27018
,
27018
,
"tcp"
,
"MongoDB shard"
]
mongodb
-
27019
-
tcp
=
[
27019
,
27019
,
"tcp"
,
"MongoDB config server"
]
# MySQL
# MySQL
mysql
-
tcp
=
[
3306
,
3306
,
"tcp"
,
"MySQL/Aurora"
]
mysql
-
tcp
=
[
3306
,
3306
,
"tcp"
,
"MySQL/Aurora"
]
...
@@ -258,7 +260,7 @@ variable "auto_groups" {
...
@@ -258,7 +260,7 @@ variable "auto_groups" {
}
}
mongodb
=
{
mongodb
=
{
ingress_rules
=
[
"mongodb-tcp"
]
ingress_rules
=
[
"mongodb-
27017-tcp"
,
"mongodb-27018-tcp"
,
"mongodb-27019-
tcp"
]
ingress_with_self
=
[
"all-all"
]
ingress_with_self
=
[
"all-all"
]
egress_rules
=
[
"all-all"
]
egress_rules
=
[
"all-all"
]
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment