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

Quotation escaping still and issue #29

Open
BClev opened this issue Apr 12, 2024 · 2 comments
Open

Quotation escaping still and issue #29

BClev opened this issue Apr 12, 2024 · 2 comments

Comments

@BClev
Copy link

BClev commented Apr 12, 2024

Closed Issue #16 still a problem.

Received the following error:

? Select resources to target apply: module.awssecret["secret1"].... will be created
Enter a value: yes

│ Error: Invalid target "module.awssecret[secret1]...."
│ Index brackets must contain either a literal number or a literal string.

This is from a foreach within a module call.

Had to manually -target="module.awssecret["secret1"]..... for it to work.

@pataquets
Copy link

Same here. Only happening with double-quoted map indexes. If I select a numeric index, it works. Did you figured out any workaround, @BClev?
I'm tight on time now, but I'll try figuring out at least the offending code, as soon as I have some spare time.

@BClev
Copy link
Author

BClev commented Aug 5, 2024

@pataquets No workaround. I just had to run a separate standard terraform -target command outside of tftarget to get it to work (latter part of my post).

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

2 participants