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
310a0803
Commit
310a0803
authored
Sep 28, 2017
by
Felipe Martin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'encryption' of github.com:fmartingr/terraform-aws-rds into encryption
parents
78e3f63c
a1b1a8c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
0 deletions
+14
-0
main.tf
main.tf
+2
-0
main.tf
modules/db_instance/main.tf
+2
-0
variables.tf
modules/db_instance/variables.tf
+5
-0
variables.tf
variables.tf
+5
-0
No files found.
main.tf
View file @
310a0803
...
@@ -65,5 +65,7 @@ module "db_instance" {
...
@@ -65,5 +65,7 @@ module "db_instance" {
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
backup_window
=
"
${
var
.
backup_window
}
"
storage_encrypted
=
"
${
var
.
encrypted
}
"
tags
=
"
${
var
.
tags
}
"
tags
=
"
${
var
.
tags
}
"
}
}
modules/db_instance/main.tf
View file @
310a0803
...
@@ -36,5 +36,7 @@ resource "aws_db_instance" "this" {
...
@@ -36,5 +36,7 @@ resource "aws_db_instance" "this" {
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
backup_window
=
"
${
var
.
backup_window
}
"
storage_encrypted
=
"
${
var
.
storage_encrypted
}
"
tags
=
"
${
merge
(
var
.
tags
,
map
(
"Name"
,
format
(
"%s"
,
var
.
identifier
)))
}
"
tags
=
"
${
merge
(
var
.
tags
,
map
(
"Name"
,
format
(
"%s"
,
var
.
identifier
)))
}
"
}
}
modules/db_instance/variables.tf
View file @
310a0803
...
@@ -126,3 +126,8 @@ variable "tags" {
...
@@ -126,3 +126,8 @@ variable "tags" {
description
=
"A mapping of tags to assign to all resources"
description
=
"A mapping of tags to assign to all resources"
default
=
{}
default
=
{}
}
}
variable
"storage_encrypted"
{
description
=
"Defines if the storage should be encrypted or not"
default
=
false
}
variables.tf
View file @
310a0803
...
@@ -122,6 +122,11 @@ variable "tags" {
...
@@ -122,6 +122,11 @@ variable "tags" {
default
=
{}
default
=
{}
}
}
variable
"encrypted"
{
description
=
"Defines wether this instance should be encrypted or not"
default
=
false
}
# DB subnet group
# DB subnet group
variable
"subnet_ids"
{
variable
"subnet_ids"
{
type
=
"list"
type
=
"list"
...
...
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