Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-rds
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-rds
Commits
2f379b98
Unverified
Commit
2f379b98
authored
Mar 06, 2018
by
Anton Babenko
Committed by
GitHub
Mar 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed count to created in submodules (#44)
parent
f3dfb61f
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
13 deletions
+51
-13
.editorconfig
.editorconfig
+30
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+9
-0
main.tf
main.tf
+3
-3
main.tf
modules/db_instance/main.tf
+1
-1
variables.tf
modules/db_instance/variables.tf
+2
-2
main.tf
modules/db_parameter_group/main.tf
+1
-1
variables.tf
modules/db_parameter_group/variables.tf
+2
-2
main.tf
modules/db_subnet_group/main.tf
+1
-1
variables.tf
modules/db_subnet_group/variables.tf
+2
-2
variables.tf
variables.tf
+0
-1
No files found.
.editorconfig
0 → 100644
View file @
2f379b98
# EditorConfig is awesome: http://EditorConfig.org
# Uses editorconfig to maintain consistent coding styles
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
[*.{tf,tfvars}]
indent_size = 2
indent_style = space
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
[Makefile]
tab_width = 2
indent_style = tab
[COMMIT_EDITMSG]
max_line_length = 0
\ No newline at end of file
.pre-commit-config.yaml
0 → 100644
View file @
2f379b98
repos
:
-
repo
:
git://github.com/antonbabenko/pre-commit-terraform
sha
:
v1.5.0
hooks
:
-
id
:
terraform_fmt
-
repo
:
git://github.com/pre-commit/pre-commit-hooks
sha
:
v1.2.0
hooks
:
-
id
:
check-merge-conflict
main.tf
View file @
2f379b98
...
@@ -9,7 +9,7 @@ locals {
...
@@ -9,7 +9,7 @@ locals {
module
"db_subnet_group"
{
module
"db_subnet_group"
{
source
=
"./modules/db_subnet_group"
source
=
"./modules/db_subnet_group"
c
ount
=
"
${
local
.
enable_create_db_subnet_group
}
"
c
reate
=
"
${
local
.
enable_create_db_subnet_group
}
"
identifier
=
"
${
var
.
identifier
}
"
identifier
=
"
${
var
.
identifier
}
"
name_prefix
=
"
${
var
.
identifier
}
-"
name_prefix
=
"
${
var
.
identifier
}
-"
subnet_ids
=
[
"
${
var
.
subnet_ids
}
"
]
subnet_ids
=
[
"
${
var
.
subnet_ids
}
"
]
...
@@ -23,7 +23,7 @@ module "db_subnet_group" {
...
@@ -23,7 +23,7 @@ module "db_subnet_group" {
module
"db_parameter_group"
{
module
"db_parameter_group"
{
source
=
"./modules/db_parameter_group"
source
=
"./modules/db_parameter_group"
c
ount
=
"
${
var
.
create_db_parameter_group
}
"
c
reate
=
"
${
var
.
create_db_parameter_group
}
"
identifier
=
"
${
var
.
identifier
}
"
identifier
=
"
${
var
.
identifier
}
"
name_prefix
=
"
${
var
.
identifier
}
-"
name_prefix
=
"
${
var
.
identifier
}
-"
family
=
"
${
var
.
family
}
"
family
=
"
${
var
.
family
}
"
...
@@ -39,7 +39,7 @@ module "db_parameter_group" {
...
@@ -39,7 +39,7 @@ module "db_parameter_group" {
module
"db_instance"
{
module
"db_instance"
{
source
=
"./modules/db_instance"
source
=
"./modules/db_instance"
c
ount
=
"
${
var
.
create_db_instance
}
"
c
reate
=
"
${
var
.
create_db_instance
}
"
identifier
=
"
${
var
.
identifier
}
"
identifier
=
"
${
var
.
identifier
}
"
engine
=
"
${
var
.
engine
}
"
engine
=
"
${
var
.
engine
}
"
engine_version
=
"
${
var
.
engine_version
}
"
engine_version
=
"
${
var
.
engine_version
}
"
...
...
modules/db_instance/main.tf
View file @
2f379b98
...
@@ -17,7 +17,7 @@ resource "aws_iam_role_policy_attachment" "enhanced_monitoring" {
...
@@ -17,7 +17,7 @@ resource "aws_iam_role_policy_attachment" "enhanced_monitoring" {
}
}
resource
"aws_db_instance"
"this"
{
resource
"aws_db_instance"
"this"
{
count
=
"
${
var
.
c
ount
?
1
:
0
}
"
count
=
"
${
var
.
c
reate
?
1
:
0
}
"
identifier
=
"
${
var
.
identifier
}
"
identifier
=
"
${
var
.
identifier
}
"
...
...
modules/db_instance/variables.tf
View file @
2f379b98
variable
"c
ount
"
{
variable
"c
reate
"
{
description
=
"Whether to create this resource or not?"
description
=
"Whether to create this resource or not?"
default
=
1
default
=
true
}
}
variable
"identifier"
{
variable
"identifier"
{
...
...
modules/db_parameter_group/main.tf
View file @
2f379b98
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# DB parameter group
# DB parameter group
#####################
#####################
resource
"aws_db_parameter_group"
"this"
{
resource
"aws_db_parameter_group"
"this"
{
count
=
"
${
var
.
c
ount
?
1
:
0
}
"
count
=
"
${
var
.
c
reate
?
1
:
0
}
"
name_prefix
=
"
${
var
.
name_prefix
}
"
name_prefix
=
"
${
var
.
name_prefix
}
"
description
=
"Database parameter group for
${
var
.
identifier
}
"
description
=
"Database parameter group for
${
var
.
identifier
}
"
...
...
modules/db_parameter_group/variables.tf
View file @
2f379b98
variable
"c
ount
"
{
variable
"c
reate
"
{
description
=
"Whether to create this resource or not?"
description
=
"Whether to create this resource or not?"
default
=
1
default
=
true
}
}
variable
"name_prefix"
{
variable
"name_prefix"
{
...
...
modules/db_subnet_group/main.tf
View file @
2f379b98
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# DB subnet group
# DB subnet group
##################
##################
resource
"aws_db_subnet_group"
"this"
{
resource
"aws_db_subnet_group"
"this"
{
count
=
"
${
var
.
c
ount
?
1
:
0
}
"
count
=
"
${
var
.
c
reate
?
1
:
0
}
"
name_prefix
=
"
${
var
.
name_prefix
}
"
name_prefix
=
"
${
var
.
name_prefix
}
"
description
=
"Database subnet group for
${
var
.
identifier
}
"
description
=
"Database subnet group for
${
var
.
identifier
}
"
...
...
modules/db_subnet_group/variables.tf
View file @
2f379b98
variable
"c
ount
"
{
variable
"c
reate
"
{
description
=
"Whether to create this resource or not?"
description
=
"Whether to create this resource or not?"
default
=
1
default
=
true
}
}
variable
"name_prefix"
{
variable
"name_prefix"
{
...
...
variables.tf
View file @
2f379b98
...
@@ -205,4 +205,3 @@ variable "create_db_instance" {
...
@@ -205,4 +205,3 @@ variable "create_db_instance" {
description
=
"Whether to create a database instance"
description
=
"Whether to create a database instance"
default
=
true
default
=
true
}
}
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