Skip to content
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

Support domain name override #197

Open
Balsir opened this issue Oct 22, 2024 · 0 comments
Open

Support domain name override #197

Balsir opened this issue Oct 22, 2024 · 0 comments

Comments

@Balsir
Copy link

Balsir commented Oct 22, 2024

Describe the Feature

Support override of Elasticsearch/Opensearch domain name.

resource "aws_elasticsearch_domain" "default" {
  count                 = local.elasticsearch_enabled ? 1 : 0
  domain_name           = module.this.id # <===== make this overridable
  elasticsearch_version = var.elasticsearch_version

Expected Behavior

Elasticsearch/Opensearch domain name overridable via variable. Label module used for tags and other resources.

Use Case

The domain name has a limit of 3-28 characters, which can be too easily breached when using all the fields of the label module. It is still, however, desirable to use the standard label scheme for other resources (e. g. IAM roles) or tags.

Describe Ideal Solution

Optional variable which overrides the domain name in all appropriate places.

Alternatives Considered

Override module.label, which potentially breaks the user's standard naming scheme.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant