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

add(outputs): paramter_group_name and option_group_name #181

Closed
wants to merge 4 commits into from

Conversation

flightlesstux
Copy link

@flightlesstux flightlesstux commented May 17, 2024

what

Output values are added.

why

We need to pass the variables to the RDS.

db_options variable logic is also fixed.

references

n/a

@flightlesstux flightlesstux requested review from a team as code owners May 17, 2024 02:31
@mergify mergify bot added the triage Needs triage label May 17, 2024
outputs.tf Outdated Show resolved Hide resolved
outputs.tf Outdated Show resolved Hide resolved
Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

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

@flightlesstux thanks you.

Please see comments, and please also run

make init
make github/init
make readme

and commit the changes

@joe-niland joe-niland added the patch A minor, backward compatible change label May 17, 2024
@joe-niland
Copy link
Member

@aknysh are we still using make github/init? I thought it was deprecated.

@flightlesstux
Copy link
Author

@flightlesstux thanks you.

Please see comments, and please also run

make init
make github/init
make readme

and commit the changes

Thank you for your help @aknysh.

@flightlesstux flightlesstux requested a review from a team as a code owner May 17, 2024 18:44
@mergify mergify bot added the needs-cloudposse Needs Cloud Posse assistance label May 17, 2024
Copy link

mergify bot commented May 17, 2024

Important

Cloud Posse Engineering Team Review Required

This pull request modifies files that require Cloud Posse's review. Please be patient, and a core maintainer will review your changes.

To expedite this process, reach out to us on Slack in the #pr-reviews channel.

@aknysh
Copy link
Member

aknysh commented May 17, 2024

@aknysh are we still using make github/init? I thought it was deprecated.

@joe-niland I'm not sure, but the command did update the files in .github folder

engine_name = var.engine
major_engine_version = local.major_engine_version
tags = module.this.tags
major_engine_version = var.major_engine_version
Copy link
Member

Choose a reason for hiding this comment

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

why changing these two lines

major_engine_version = var.major_engine_version
  tags                 = var.tags


name_prefix = "${module.this.id}${module.this.delimiter}"
name = var.option_group_name
count = 1
Copy link
Member

Choose a reason for hiding this comment

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

if count is one, not need to set tit to 1

count = length(var.option_group_name) == 0 && module.this.enabled ? 1 : 0

name_prefix = "${module.this.id}${module.this.delimiter}"
name = var.option_group_name
Copy link
Member

Choose a reason for hiding this comment

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

hmm, this completely changes the behavior of the module.

Before, if var.option_group_name was provided, it was used as an existing option grouo and no new option grouo was created.

After this change, var.option_group_name is the name of the new option group to create.

Also, name_prefix was useful to create many option groups for the same cluster.

@flightlesstux can you maybe update it to maintain backwards compatibility? (otherwise, it will break many existing deployments)

Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

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

please see comments

Copy link

mergify bot commented May 24, 2024

💥 This pull request now has conflicts. Could you fix it @flightlesstux? 🙏

@mergify mergify bot added the conflict This PR has conflicts label May 24, 2024
@flightlesstux
Copy link
Author

PR closed due to not necessary commits. Sorry for this.

@mergify mergify bot removed conflict This PR has conflicts needs-cloudposse Needs Cloud Posse assistance labels May 26, 2024
@mergify mergify bot removed the triage Needs triage label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch A minor, backward compatible change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants