title: Shell Script for AWS Expired Certs to Delete
body: <p>Trying to write a script to find and delete aws certs which are expired</p>
  <pre><code>#!/bin/bash
  
  for c in $(aws acm list-certificates --query 'CertificateSummaryList[].CertificateArn' --output text)
      do aws acm describe-certificate --certificate-arn $c --query 'Certificate.[CertificateArn,DomainName,Status,NotAfter]'
  done
  </code></pre>
  <p>THEN I GOT THIS OUTPUT
  <code>&quot;arn:aws:acm:us-east-1: somenumbers &quot;*blabla.com&quot;, &quot;ISSUED&quot;, &quot;2020-11-10T12:00:00+00:00&quot; </code></p>