-
-
Notifications
You must be signed in to change notification settings - Fork 190
feat: add identifier prefixes to recreate resources #258
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
base: main
Are you sure you want to change the base?
Conversation
3635adb to
7824d5a
Compare
Signed-off-by: nitrocode <[email protected]>
7824d5a to
ae7ec42
Compare
Signed-off-by: nitrocode <[email protected]>
|
/terratest |
| identifier = "${module.rds_identifier[0].id}-${count.index + 1}" | ||
| count = local.cluster_instance_count | ||
|
|
||
| identifier_prefix = var.rds_cluster_identifier_prefix_enabled ? "${module.rds_identifier[0].id}${module.this.delimiter}${count.index + 1}${module.this.delimiter}" : null |
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.
The unique name for the aws_rds_cluster_instance should be controlled by the random_pet that feeds into the module.rds_identifier. Why is that not working here?
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.
How do you know it's not working?
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.
Oh I see what you're saying. The random pet does go into the rds_identifier. Hmm, maybe I'm not using it correctly
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.
@nitrocode there is some history here, I made some changes in #236 but after some FUD some of the changes were taken out in #242. You would probably need to add cluster_identifier back into the random_pet to get the features you want.
Signed-off-by: nitrocode <[email protected]>
a789518 to
a8501c4
Compare
Signed-off-by: nitrocode <[email protected]>
cc1cef1 to
fff6fbe
Compare
|
💥 This pull request now has conflicts. Could you fix it @nitrocode? 🙏 |
what
why
parameter_group_name_prefix_enabledrds_cluster_identifier_prefix_enableddb_subnet_group_prefix_enabled*_prefixarguments add an additional 27 characters to each resource which can cause errors upon apply due to it exceeding 64 characters*_prefixand instead use a random string for each of these resource typesreferences
create_before_destroyset totrueon the cluster instance #257