-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Allow create of parameter group with custom name #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow create of parameter group with custom name #99
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, couple minor changes.
modules/db_parameter_group/data.tf
Outdated
@@ -0,0 +1,3 @@ | |||
locals { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put locals
in main.tf
. No need for data.tf
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -1,8 +1,24 @@ | |||
resource "aws_db_parameter_group" "this_no_prefix" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update https://github.com/terraform-aws-modules/terraform-aws-rds/blob/master/modules/db_parameter_group/outputs.tf to include aws_db_parameter_group.this_no_prefix
resource also.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thanks @robinbowes ! v1.23.0 has been released. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This change allows the user to create the parameter group with a custom name.
It adds a new parameter:
use_parameter_group_name_prefix
which allow the user to specify manually whether or not to use a prefix with the parameter group name (default: true).If
use_parameter_group_name_prefix
is false, andparameter_group_name
is not passed,identifier
is used.I found I also needed to add the capability to set the parameter group description, since it can't be changed without deleting/recreating the group. Since the purpose of these changes is to allow me to import an existing, active parameter group, it's important to be able to do that without triggering a delete.