Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个像下面这样的模板
Version: "2012-10-17" Statement: - Effect: Allow Principal: Service: - "xyz.amazonaws.com" Action: "sts:AssumeRole"
我想使用 yaml 命令提取“xyz.amazonaws.com”。我怎样才能做到这一点 ?由于列表键,它没有响应 - “- 效果:允许”
yq r <yaml document> Version.[Effect==Allow].Action