NotAfter before today + 7dNotBefore before today (already valid)09:00 local).{{ $json.NotAfter.toDateTime('s') }} is before {{ $today.plus(7,'days') }}{{ $json.NotBefore.toDateTime('s') }} is before {{ $today }}Message (text input):
:warning: *ACM Certificate Expiry Alert* :warning:
Domain: {{ $json.DomainName }} SANs: {{ $json.SubjectAlternativeNameSummaries }} ARN: {{ $json.CertificateArn }} Algo: {{ $json.KeyAlgorithm }} Status: {{ $json.Status }} Issued: {{ $json.IssuedAt | toDate | formatDate("YYYY-MM-DD HH:mm") }} Expires: {{ $json.NotAfter | toDate | formatDate("YYYY-MM-DD HH:mm") }}
Approve to start renewal.
Add two buttons: Approve / Reject (the node will output which was clicked).
acm:ListCertificates, acm:DescribeCertificate, acm:RenewCertificate (plus region access).7 to 14 or 30 days in the filter.{{ $json.NotAfter.toDateTime('s') }} is before {{ $today }} → send a red Slack alert.user, time, result.@oncall or open a ticket.NotAfter/IssuedAt are Unix seconds ('s'). Adjust if your data differs.