Skip to content
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

Merged

Conversation

robinbowes
Copy link
Contributor

@robinbowes robinbowes commented Mar 7, 2019

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, and parameter_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.

Copy link

@rmkbow rmkbow left a 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 👍

Copy link
Member

@antonbabenko antonbabenko left a 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.

@@ -0,0 +1,3 @@
locals {
Copy link
Member

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.

Copy link
Contributor Author

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" {
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@antonbabenko antonbabenko merged commit 7805f16 into terraform-aws-modules:master Mar 10, 2019
@antonbabenko
Copy link
Member

Thanks @robinbowes !

v1.23.0 has been released.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants