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
d86b10ba
Commit
d86b10ba
authored
Oct 12, 2017
by
Anton Babenko
Committed by
GitHub
Oct 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from jensendw/final_snapshot_identifier
support final_snapshot_identifier
parents
a60ed816
66b65f2d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
9 deletions
+27
-9
README.md
README.md
+12
-9
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
+5
-0
variables.tf
variables.tf
+5
-0
No files found.
README.md
View file @
d86b10ba
...
@@ -54,6 +54,9 @@ module "db" {
...
@@ -54,6 +54,9 @@ module "db" {
# DB parameter group
# DB parameter group
family
=
"mysql5.7"
family
=
"mysql5.7"
# Snapshot name upon DB deletion
final_snapshot_identifier
=
"demodb"
parameters
=
[
parameters
=
[
{
{
name
=
"character_set_client"
name
=
"character_set_client"
...
...
examples/complete/main.tf
View file @
d86b10ba
...
@@ -50,4 +50,7 @@ module "db" {
...
@@ -50,4 +50,7 @@ module "db" {
subnet_ids
=
[
"
${data
.
aws_subnet_ids
.
all
.
ids
}
"
]
subnet_ids
=
[
"
${data
.
aws_subnet_ids
.
all
.
ids
}
"
]
# DB parameter group
# DB parameter group
family
=
"mysql5.7"
family
=
"mysql5.7"
# Snapshot name upon DB deletion
final_snapshot_identifier
=
"demodb"
}
}
main.tf
View file @
d86b10ba
...
@@ -61,6 +61,7 @@ module "db_instance" {
...
@@ -61,6 +61,7 @@ module "db_instance" {
maintenance_window
=
"
${
var
.
maintenance_window
}
"
maintenance_window
=
"
${
var
.
maintenance_window
}
"
skip_final_snapshot
=
"
${
var
.
skip_final_snapshot
}
"
skip_final_snapshot
=
"
${
var
.
skip_final_snapshot
}
"
copy_tags_to_snapshot
=
"
${
var
.
copy_tags_to_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_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
backup_window
=
"
${
var
.
backup_window
}
"
...
...
modules/db_instance/main.tf
View file @
d86b10ba
...
@@ -33,6 +33,7 @@ resource "aws_db_instance" "this" {
...
@@ -33,6 +33,7 @@ resource "aws_db_instance" "this" {
maintenance_window
=
"
${
var
.
maintenance_window
}
"
maintenance_window
=
"
${
var
.
maintenance_window
}
"
skip_final_snapshot
=
"
${
var
.
skip_final_snapshot
}
"
skip_final_snapshot
=
"
${
var
.
skip_final_snapshot
}
"
copy_tags_to_snapshot
=
"
${
var
.
copy_tags_to_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_retention_period
=
"
${
var
.
backup_retention_period
}
"
backup_window
=
"
${
var
.
backup_window
}
"
backup_window
=
"
${
var
.
backup_window
}
"
...
...
modules/db_instance/variables.tf
View file @
d86b10ba
...
@@ -49,6 +49,11 @@ variable "port" {
...
@@ -49,6 +49,11 @@ variable "port" {
description
=
"The port on which the DB accepts connections"
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."
default
=
""
}
variable
"vpc_security_group_ids"
{
variable
"vpc_security_group_ids"
{
description
=
"List of VPC security groups to associate"
description
=
"List of VPC security groups to associate"
default
=
[]
default
=
[]
...
...
variables.tf
View file @
d86b10ba
...
@@ -29,6 +29,11 @@ variable "engine_version" {
...
@@ -29,6 +29,11 @@ variable "engine_version" {
description
=
"The engine version to use"
description
=
"The engine version to use"
}
}
variable
"final_snapshot_identifier"
{
description
=
"The name of your final DB snapshot when this DB instance is deleted."
default
=
""
}
variable
"instance_class"
{
variable
"instance_class"
{
description
=
"The instance type of the RDS instance"
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