tftarget icon indicating copy to clipboard operation
tftarget copied to clipboard

Quotation escaping still and issue

Open BClev opened this issue 1 year ago • 2 comments

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.

BClev avatar Apr 12 '24 18:04 BClev

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.

pataquets avatar Aug 05 '24 11:08 pataquets

@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).

BClev avatar Aug 05 '24 14:08 BClev