#help (2023-11)
Where to get help about getting help!
2023-11-01

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

Have you tried setting id_length_limit
?


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.

In this particular case, the name is also redundant with the stage.
elasticsearch-production

So I would consider changing the name to represent how it’s used, or the product/business it supports.

@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

thanks for this

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)

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

artifactory doesn’t have a retention policy for artifacts?! that seems crazy

how do i clean out stuff that’s X amount of time old?

Something like this https://github.com/JDASoftwareGroup/artifactory-cleanup
Cleanup your unused JFrog Artifactory’s artifacts
2023-11-10

Hi, team! I recently joined because I created a PR

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

Best channel for requesting #pr-reviews ←

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