Skip to content

yq v4: How to inline edit a specific document in a file containing several documents #630

Answered by mikefarah
ghost asked this question in Q&A
Discussion options

You must be logged in to vote
yq e -i 'select(.spec.role == "Node").externalLoadBalancers.targetGroupArn = "xyz"' sample.yaml

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant