Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACM certificate expiry Closes #524 #525

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions query/acm/acm_certificate_expires_30_days.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ select
certificate_arn as resource,
case
when renewal_eligibility = 'INELIGIBLE' then 'skip'
when not_after <= (current_date - interval '30' day) then 'ok'
when date(not_after) - date(current_date) >= 30 then 'ok'
else 'alarm'
end as status,
case
when renewal_eligibility = 'INELIGIBLE' then title || ' not eligible for renewal.'
else title || ' expires ' || to_char(not_after, 'DD-Mon-YYYY') ||
' (' || extract(day from not_after - current_timestamp) || ' days).'
' (' || extract(day from not_after - current_date) || ' days).'
misraved marked this conversation as resolved.
Show resolved Hide resolved
end as reason,
-- Additional Dimensions
region,
account_id
from
aws_acm_certificate;
aws_acm_certificate;