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
5f4ae710
Commit
5f4ae710
authored
Sep 21, 2017
by
Daniel Jensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support final_snapshot_identifier
parent
0e1f9c7a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
10 deletions
+26
-10
README.md
README.md
+13
-10
main.tf
examples/complete/main.tf
+3
-0
main.tf
main.tf
+1
-0
main.tf
modules/db_instance/main.tf
+1
-0
variables.tf
modules/db_instance/variables.tf
+4
-0
variables.tf
variables.tf
+4
-0
No files found.
README.md
View file @
5f4ae710
...
...
@@ -50,6 +50,9 @@ module "db" {
# DB parameter group
family
=
"mysql5.7"
# Snapshot name upon DB deletion
final_snapshot_identifier
=
"demodb"
parameters
=
[
{
name
=
"character_set_client"
...
...
examples/complete/main.tf
View file @
5f4ae710
...
...
@@ -52,4 +52,7 @@ module "db" {
# DB parameter group
family
=
"mysql5.7"
# Snapshot name upon DB deletion
final_snapshot_identifier
=
"demodb"
}
main.tf
View file @
5f4ae710
...
...
@@ -59,6 +59,7 @@ module "db_instance" {
maintenance_window
=
"
${
var
.
maintenance_window
}
"
skip_final_snapshot
=
"
${
var
.
skip_final_snapshot
}
"
copy_tags_to_snapshot
=
"
${
var
.
copy_tags_to_snapshot
}
"
final_snapshot_identifier
=
"
${
var
.
final_snapshot_identifier
}
"
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
...
...
modules/db_instance/main.tf
View file @
5f4ae710
...
...
@@ -30,6 +30,7 @@ resource "aws_db_instance" "this" {
maintenance_window
=
"
${
var
.
maintenance_window
}
"
skip_final_snapshot
=
"
${
var
.
skip_final_snapshot
}
"
copy_tags_to_snapshot
=
"
${
var
.
copy_tags_to_snapshot
}
"
final_snapshot_identifier
=
"
${
var
.
final_snapshot_identifier
}
"
backup_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
...
...
modules/db_instance/variables.tf
View file @
5f4ae710
...
...
@@ -39,6 +39,10 @@ variable "port" {
description
=
"The port on which the DB accepts connections"
}
variable
"final_snapshot_identifier"
{
description
=
"The name of your final DB snapshot when this DB instance is deleted."
}
variable
"vpc_security_group_ids"
{
description
=
"List of VPC security groups to associate"
default
=
[]
...
...
variables.tf
View file @
5f4ae710
...
...
@@ -19,6 +19,10 @@ variable "engine_version" {
description
=
"The engine version to use"
}
variable
"final_snapshot_identifier"
{
description
=
"The name of your final DB snapshot when this DB instance is deleted."
}
variable
"instance_class"
{
description
=
"The instance type of the RDS instance"
}
...
...
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