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 object-like key names #158

Open
kljensen opened this issue Aug 1, 2021 · 1 comment · May be fixed by #159
Open

Support object-like key names #158

kljensen opened this issue Aug 1, 2021 · 1 comment · May be fixed by #159

Comments

@kljensen
Copy link

kljensen commented Aug 1, 2021

I have a key name for a resource that looks like the following:

aws_route53_record.module_ec2_webserver["www_656_mba"]_the_dns_record

That's because I'm using for_each over an object in my terraform configuration. I'd like to fix the nameParser regexp to handle this case. I can add some tests too. But, I don't have many examples of valid key names "in the wild". I'm hoping people see this issue and can tell me some valid key names and I'll fix the nameParser to recognize them all.

@kljensen
Copy link
Author

kljensen commented Aug 1, 2021

Here's a playground example https://play.golang.org/p/aUEtalkUyAj

Kurmaev added a commit to ChannexIO/terraform-inventory that referenced this issue Oct 21, 2021
Kurmaev added a commit to ChannexIO/terraform-inventory that referenced this issue Oct 21, 2021
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

Successfully merging a pull request may close this issue.

1 participant