title: AWS CLI check if a lambda function exists
body: <p>How do I do a one-time check if a lambda function exists via the CLI? I saw this <code>function-exists</code> option - <a href="https://docs.aws.amazon.com/cli/latest/reference/lambda/wait/function-exists.html" rel="noreferrer">https://docs.aws.amazon.com/cli/latest/reference/lambda/wait/function-exists.html</a></p>
  
  <p>But it polls every second and returns a failure after 20 failed checks. I only want to check once and fail if it isn't found. Is there a way to do that?</p>