Control: Route 53 domains should not be expired
Description
This control identifes any expired domain names registered with AWS Route 53. When the expired domain names are not restored promptly, they will become available for others to register. Restoring on time your Route 53 expired domains will allow you to reestablish full control over their registration.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.route53_domain_not_expiredSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.route53_domain_not_expired --shareSQL
This control uses a named query:
select  arn as resource,  case    when expiration_date < (current_date - interval '1' minute) then 'alarm'    else 'ok'  end as status,  case    when expiration_date < (current_date - interval '1' minute) then title || ' expired on ' || to_char(expiration_date, 'DD-Mon-YYYY') || '.'    else title || ' set to expire in ' || extract(day from expiration_date - current_date) || ' days.'  end as reason    , account_idfrom  aws_route53_domain;