-
-
Notifications
You must be signed in to change notification settings - Fork 184
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: Too long identifier name error #226
Conversation
@MaxymVlasov we still want to retain that random_pet because when we |
@kevcube So you still have unique id based on pet_random, but which not violate AWS limitation |
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.
Ah I see, I only looked at the part where you replace random_pet
with module.rds_identifier
and I assumed that was an identifier that was already being created, now I see it is a new one. LGTM
/terratest |
/terratest |
@kevcube tests passed |
ok - one thing I'm wondering is how we release this, it feels like a fix, but also this will cause consumer's db instances to be recycled so maybe I release as a minor. Going to ask for backup. |
It will affect only DBs with a |
Ah I see, thanks for that info, I thought all identifiers would get the hash appended. In this case I feel safer merging it, I think it's a rare situation that someone has their instance name at the character limit, especially considering the random_pet adds some unpredictability to length. |
Although I cannot merge because I was the last pusher and also only approver 🤡 whoops! |
This comment was marked as resolved.
This comment was marked as resolved.
/terratest |
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.
thanks @MaxymVlasov
These changes were released in v1.11.1. |
what
Fix too long identifier name without cluster recreation:
set
id_length_limit = 40
forwill cause such recreation if final
module.this.id
will be between 40-60 characterswhy
https://github.com/cloudposse/terraform-aws-rds-cluster/releases/tag/1.10.0 introduced
random_pet
, which adds 2 extra words on the top ofmodule.this.id
, and that exceed limit of 63 allowed characters for RDS namesThis PR limit final identifier to 62-63 chars (depends on count of replica)
references
Fixing #213