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

[Bug]: Cannot convert the confmap.Conf: environment variable "1" has invalid name #279

Closed
1 task done
cloudchristina opened this issue Sep 4, 2024 · 3 comments
Closed
1 task done
Labels
bug Something isn't working

Comments

@cloudchristina
Copy link

cloudchristina commented Sep 4, 2024

Welcome to the AWS Observability Accelerator

  • Yes, I've searched similar issues on GitHub and didn't find any.

AWS Observability Accelerator Release version

v2.12.0

What is your environment, configuration and the example used?

Environment: EKS observability, EKS version 1.29.
EKS ADOT Add-on version: v0.102.0

Configuration: using https://github.com/aws-observability/terraform-aws-observability-accelerator/blob/[…]ks-monitoring/otel-config/templates/opentelemetrycollector.yaml

Example used: https://aws-observability.github.io/terraform-aws-observability-accelerator/eks/

What did you do and What did you see instead?

I followed the instructions.

Errors: Error: failed to resolve config: cannot resolve the configuration: cannot convert the confmap.Conf: environment variable "1" has invalid name: must match regex ^[a-zA-Z_][a-zA- ││

image

Other:

I have tested with v0.104.0, v0.107.0, v0.108.0 all same errors

otel Chart.yml

apiVersion: v2
name: opentelemetry
description: A Helm chart to install otel operator
type: application
version: 0.8.0
appVersion: 0.108.0

Additional Information

Interesting things is I followed the instructions and deployed whole observability resources about 2 weeks ago and everything works fine.

@cloudchristina cloudchristina added the bug Something isn't working label Sep 4, 2024
@cloudchristina cloudchristina changed the title [Bug]: <title> Cannot convert the confmap.Conf: environment variable "1" has invalid name: [Bug]: <Cannot convert the confmap.Conf: environment variable "1" has invalid name> Sep 4, 2024
@cloudchristina cloudchristina changed the title [Bug]: <Cannot convert the confmap.Conf: environment variable "1" has invalid name> [Bug]: Cannot convert the confmap.Conf: environment variable "1" has invalid name Sep 4, 2024
@akhilv-ciq
Copy link

The issue is because of this line.

Please change replacement: $1 to replacement: $$1

@subhashvizio
Copy link

Ran into same issue. No more errors after replacing $$1 with $${1} and $$2 with $${2}
AWS have to make this fix in their example. Until then have to download the module and make the changes locally.

@bonclay7
Copy link
Member

#281 should address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants