#help (2023-11)
Where to get help about getting help!
2023-11-01
![Lee Whalen avatar](https://avatars.slack-edge.com/2019-04-18/614827667559_957c77accaa2ad1e9cdd_72.jpg)
Hi there. I am attempting to use your Elasticsearch module in vain. It will not tell me what is wrong other than:
Error: invalid value for domain_name (must start with a lowercase alphabet and be at least 3 and no more than 28 characters long. Valid characters are a-z (lowercase letters), 0-9, and - (hyphen).)
│
│ with module.elasticsearch.aws_elasticsearch_domain.default[0],
│ on .terraform/modules/elasticsearch/main.tf line 108, in resource "aws_elasticsearch_domain" "default":
│ 108: domain_name = module.this.id
And I cannot override that module.this.id
with something valid
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Have you tried setting id_length_limit
?
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Also, personal preference, do not add the technology name in the resource name as it does not add disambiguation, but does add significant length to a space constrained resource name. E.g.. don’t name buckets “buckets” and don’t name ES clusters ES.
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
In this particular case, the name is also redundant with the stage.
elasticsearch-production
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
So I would consider changing the name to represent how it’s used, or the product/business it supports.
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
@Matt Gowie wrote a great post recently on null label. https://www.reddit.com/r/Terraform/comments/17h3x3p/terraformnulllabel_the_why_and_how_it_should_be/
Posted in r/Terraform by u/MasterpointOfficial • 8 points and 4 comments
![Lee Whalen avatar](https://avatars.slack-edge.com/2019-04-18/614827667559_957c77accaa2ad1e9cdd_72.jpg)
thanks for this
![Lee Whalen avatar](https://avatars.slack-edge.com/2019-04-18/614827667559_957c77accaa2ad1e9cdd_72.jpg)
turns out
name = "elasticsearch-production"
was the culprit. Setting it to es
made it short enough (but the error wasn’t super clear what the actual problem was)
![Lee Whalen avatar](https://avatars.slack-edge.com/2019-04-18/614827667559_957c77accaa2ad1e9cdd_72.jpg)
I’m calling the elasticsearch module with:
module "elasticsearch" {
source = "cloudposse/elasticsearch/aws"
version = "0.46.0"
namespace = "somecorp"
stage = "production"
name = "elasticsearch-production"
vpc_id = data.aws_vpc.selected.id
subnet_ids = data.aws_subnets.private_vpc_subnets.ids
zone_awareness_enabled = true
elasticsearch_version = "7.10"
instance_type = "r6gd.large.search"
instance_count = 3
ebs_volume_size = 100
encrypt_at_rest_enabled = true
advanced_options = {
"rest.action.multi.allow_explicit_index" = "true"
}
}
2023-11-02
2023-11-08
![Zing avatar](https://secure.gravatar.com/avatar/acc8a8448f5566294450c6527388e44e.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0020-72.png)
artifactory doesn’t have a retention policy for artifacts?! that seems crazy
![Zing avatar](https://secure.gravatar.com/avatar/acc8a8448f5566294450c6527388e44e.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0020-72.png)
how do i clean out stuff that’s X amount of time old?
![Max Lobur (Cloud Posse) avatar](https://avatars.slack-edge.com/2021-07-20/2316891735296_3098d8d2760936592f52_72.jpg)
Something like this https://github.com/JDASoftwareGroup/artifactory-cleanup
Cleanup your unused JFrog Artifactory’s artifacts
2023-11-10
![salvadormontiel8 avatar](https://secure.gravatar.com/avatar/5916b21a4e1b23861f177a7f821bfd64.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0024-72.png)
Hi, team! I recently joined because I created a PR
![attachment image](https://user-images.githubusercontent.com/10036810/282178961-92ee741e-0268-4039-a496-ddfdbb283f79.png)
what
Improve TF formatting when a DynamoDB table is not specified.
why
As our CI pipeline checks formatting and we don’t use a DynamoDB for locking, we keep committing changes made to the backend file which is handled by this module.
image
references
N/A
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Best channel for requesting #pr-reviews ←
![attachment image](https://user-images.githubusercontent.com/10036810/282178961-92ee741e-0268-4039-a496-ddfdbb283f79.png)
what
Improve TF formatting when a DynamoDB table is not specified.
why
As our CI pipeline checks formatting and we don’t use a DynamoDB for locking, we keep committing changes made to the backend file which is handled by this module.
image
references
N/A