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
a1b1a8c2
Commit
a1b1a8c2
authored
Sep 27, 2017
by
Felipe Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using `encrypted` to set the db_instance.storage_encrypted
parent
0e1f9c7a
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 @
a1b1a8c2
...
...
@@ -63,5 +63,7 @@ module "db_instance" {
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
storage_encrypted
=
"
${
var
.
encrypted
}
"
tags
=
"
${
var
.
tags
}
"
}
modules/db_instance/main.tf
View file @
a1b1a8c2
...
...
@@ -34,5 +34,7 @@ resource "aws_db_instance" "this" {
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
storage_encrypted
=
"
${
var
.
storage_encrypted
}
"
tags
=
"
${
merge
(
var
.
tags
,
map
(
"Name"
,
format
(
"%s"
,
var
.
identifier
)))
}
"
}
modules/db_instance/variables.tf
View file @
a1b1a8c2
...
...
@@ -116,3 +116,8 @@ variable "tags" {
description
=
"A mapping of tags to assign to all resources"
default
=
{}
}
variable
"storage_encrypted"
{
description
=
"Defines if the storage should be encrypted or not"
default
=
false
}
variables.tf
View file @
a1b1a8c2
...
...
@@ -112,6 +112,11 @@ variable "tags" {
default
=
{}
}
variable
"encrypted"
{
description
=
"Defines wether this instance should be encrypted or not"
default
=
false
}
# DB subnet group
variable
"subnet_ids"
{
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