feat: add identifier prefixes to recreate resources#258
feat: add identifier prefixes to recreate resources#258
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.
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.
How do you know it's not working?
There was a problem hiding this comment.
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.
@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