#help (2023-11)

Where to get help about getting help!

2023-11-01

Lee Whalen avatar
Lee Whalen

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
Erik Osterman (Cloud Posse)

Have you tried setting id_length_limit?

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

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
Erik Osterman (Cloud Posse)

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

elasticsearch-production
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

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

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)
terraform-null-label: the why and how it should be used

Posted in r/Terraform by u/MasterpointOfficial • 8 points and 4 comments

Lee Whalen avatar
Lee Whalen

thanks for this

Lee Whalen avatar
Lee Whalen

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
Lee Whalen

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

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

Zing avatar

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

Max Lobur (Cloud Posse) avatar
Max Lobur (Cloud Posse)
JDASoftwareGroup/artifactory-cleanup

Cleanup your unused JFrog Artifactory’s artifacts

2023-11-10

salvadormontiel8 avatar
salvadormontiel8

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

#149 fix: Better TF formating when dynamodb_table is empty when creating backend template fileattachment image

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

1
Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

Best channel for requesting #pr-reviews

#149 fix: Better TF formating when dynamodb_table is empty when creating backend template fileattachment image

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

2023-11-13

    keyboard_arrow_up