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

fix: apply db_port to actual instance #162

Closed
wants to merge 2 commits into from

Conversation

ekristen
Copy link

what

Makes the db_port effective. Currently it only modifies the security group, not the actual RDS port.

why

The current variable is broken, it modifies the security group but not the underlying cluster, therefore it's actually renders the variable ineffective as is. In fact if you do not set it do the default for the database type, the use of the module will not work.

references

@ekristen ekristen requested review from a team as code owners April 14, 2023 16:12
@Gowiem
Copy link
Member

Gowiem commented Apr 14, 2023

/test all

@Gowiem Gowiem self-requested a review April 14, 2023 16:21
@Gowiem Gowiem added the patch A minor, backward compatible change label Apr 14, 2023
Gowiem
Gowiem previously approved these changes Apr 14, 2023
Copy link
Member

@Gowiem Gowiem left a comment

Choose a reason for hiding this comment

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

It's amazing to me that we haven't caught this until now... Guess that goes to show how many folks just use the default port in 99% of cases.

Thanks for the quick fix @ekristen!

@Gowiem Gowiem enabled auto-merge (squash) April 14, 2023 16:24
@ekristen
Copy link
Author

Looks like we had some errors on terratest, odd that it says that encryption is always enabled on Serverless. I'm actually using Serverless v2 right now that that's not the case, you can have un-encrypted clusters.

@Gowiem
Copy link
Member

Gowiem commented Apr 17, 2023

@ekristen I'm sorry about this, it's a PITA, but can you do me a favor and add storage_encrypted = true to the complete example here: https://github.com/cloudposse/terraform-aws-rds-cluster/blob/master/examples/complete/main.tf#L28

I'm not sure why this is failing now... but let's see if we can appease it and get this very reasonable and important fix in. Appreciate it!

auto-merge was automatically disabled April 17, 2023 18:38

Head branch was pushed to by a user without write access

@ekristen
Copy link
Author

all good @Gowiem commit sent, lets see if we get tests to pass.

@Gowiem
Copy link
Member

Gowiem commented Apr 17, 2023

/test all

@hans-d
Copy link

hans-d commented Mar 2, 2024

closing

@hans-d hans-d closed this Mar 2, 2024
@echibuogwu
Copy link
Contributor

Not sure why this was closed, I created a new PR here #222

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.

db_port not working as expected
4 participants