1418 shaares
Note: Even when passing a target, the resource you are looking for might not have index 0
.
To list all the resources names and find the correct index run terraform show -json /tmp/tfplan | jq -r ".resource_changes[].address"
Note: Even when passing a target, the resource you are looking for might not have index 0
.
To list all the resources names and find the correct index run terraform show -json /tmp/tfplan | jq -r ".resource_changes[].address"