ka2n blog

Technology and beer

AWSから古いサーバー証明書を削除する

aws iam list-server-certificates | \
jq '.ServerCertificateMetadataList[] | select(.Expiration | fromdate < now) | .ServerCertificateName' | \
xargs -n1 aws iam delete-server-certificate --server-certificate-name