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
42c17635
Unverified
Commit
42c17635
authored
Jan 09, 2020
by
Anton Babenko
Committed by
GitHub
Jan 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added delete timeout for db_option_group (#186)
parent
1492acf2
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
1 deletion
+24
-1
README.md
README.md
+1
-0
main.tf
main.tf
+2
-0
README.md
modules/db_option_group/README.md
+1
-0
main.tf
modules/db_option_group/main.tf
+4
-0
variables.tf
modules/db_option_group/variables.tf
+8
-1
variables.tf
variables.tf
+8
-0
No files found.
README.md
View file @
42c17635
...
...
@@ -177,6 +177,7 @@ module "db" {
| name | The DB name to create. If omitted, no database is created initially | string |
`""`
| no |
| option
\_
group
\_
description | The description of the option group | string |
`""`
| no |
| option
\_
group
\_
name | Name of the DB option group to associate | string |
`""`
| no |
| option
\_
group
\_
timeouts | Define maximum timeout for deletion of
`aws\_db\_option\_group`
resource | map(string) |
`{ "delete": "15m" }`
| no |
| options | A list of Options to apply. | any |
`[]`
| no |
| parameter
\_
group
\_
description | Description of the DB parameter group to create | string |
`""`
| no |
| parameter
\_
group
\_
name | Name of the DB parameter group to associate or create | string |
`""`
| no |
...
...
main.tf
View file @
42c17635
...
...
@@ -48,6 +48,8 @@ module "db_option_group" {
options
=
var
.
options
timeouts
=
var
.
option_group_timeouts
tags
=
var
.
tags
}
...
...
modules/db_option_group/README.md
View file @
42c17635
...
...
@@ -13,6 +13,7 @@
| option
\_
group
\_
description | The description of the option group | string |
`""`
| no |
| options | A list of Options to apply | any |
`[]`
| no |
| tags | A mapping of tags to assign to the resource | map(string) |
`{}`
| no |
| timeouts | Define maximum timeout for deletion of
`aws\_db\_option\_group`
resource | map(string) |
`{ "delete": "15m" }`
| no |
## Outputs
...
...
modules/db_option_group/main.tf
View file @
42c17635
...
...
@@ -32,6 +32,10 @@ resource "aws_db_option_group" "this" {
}
,
)
timeouts
{
delete
=
lookup
(
var
.
timeouts
,
"delete"
,
null
)
}
lifecycle
{
create_before_destroy
=
true
}
...
...
modules/db_option_group/variables.tf
View file @
42c17635
...
...
@@ -36,9 +36,16 @@ variable "options" {
default
=
[]
}
variable
"timeouts"
{
description
=
"Define maximum timeout for deletion of `aws_db_option_group` resource"
type
=
map
(
string
)
default
=
{
delete
=
"15m"
}
}
variable
"tags"
{
description
=
"A mapping of tags to assign to the resource"
type
=
map
(
string
)
default
=
{}
}
variables.tf
View file @
42c17635
...
...
@@ -313,6 +313,14 @@ variable "timeouts" {
}
}
variable
"option_group_timeouts"
{
description
=
"Define maximum timeout for deletion of `aws_db_option_group` resource"
type
=
map
(
string
)
default
=
{
delete
=
"15m"
}
}
variable
"deletion_protection"
{
description
=
"The database can't be deleted when this value is set to true."
type
=
bool
...
...
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