Skip to main content

Triage and Remediation

Remediation

Using Console

To remediate the Route 53 Domain Expiry in 45 days issue on AWS using the AWS console, follow the below steps:
  1. Log in to the AWS Management Console and navigate to the Route 53 service.
  2. Click on the Registered Domains option from the left-hand menu.
  3. Select the domain name that is expiring in 45 days.
  4. Click on the Renew Domain button.
  5. Select the number of years you want to renew the domain for and click on the Add to cart button.
  6. Review the order details and click on the Complete Purchase button.
  7. Follow the on-screen instructions to complete the payment process.
Once the payment process is complete, the domain will be renewed for the selected number of years and the Route 53 Domain Expiry issue will be resolved. It is recommended to set up auto-renewal for the domain to avoid such issues in the future.

To remediate the Route 53 Domain Expiry In 45 Days issue for AWS using AWS CLI, follow these steps:
  1. Open the AWS CLI and run the following command to get a list of your Route 53 domains and their expiration dates:
  1. Identify the domain that is expiring within the next 45 days.
  2. Renew the domain by running the following command:
Replace <domain_name> with the name of the expiring domain and <number_of_years> with the number of years you want to renew the domain for.
  1. Verify that the domain has been renewed by running the following command:
Replace <domain_name> with the name of the renewed domain.
  1. Check the new expiration date of the domain to ensure that it has been extended by the desired number of years.
By following these steps, you should be able to successfully remediate the Route 53 Domain Expiry In 45 Days issue for AWS using AWS CLI.
To remediate the Route 53 Domain Expiry issue in AWS using Python, you can follow the below steps:Step 1: Install the required Python libraries boto3 and datetime by running the following command in your terminal:
Step 2: Create an AWS IAM user with programmatic access and Route 53 read-only access. Generate an access key and secret access key for the user.Step 3: In your Python script, import the required libraries and set up the AWS credentials using the access key and secret access key generated in Step 2:
Step 4: Use the list_hosted_zones() method to get a list of all the hosted zones in your AWS account:
Step 5: Iterate through the hosted zones and use the get_hosted_zone() method to get the details of each hosted zone:
Step 6: Check the Expiration field in the hosted_zone_details dictionary to see if the domain is expiring in the next 45 days:
Step 7: If the domain is expiring in the next 45 days, you can take appropriate action such as renewing the domain or transferring it to another registrar.Note: You can schedule this Python script to run periodically using a cron job or a similar scheduling mechanism to ensure that you are notified of any expiring domains in a timely manner.
Terraform currently cannot manage Route 53 domain registration settings (including auto‑renew); the AWS provider does not expose a resource/argument for this, so this finding cannot be remediated via Terraform.Use the CLI or console instead, matching the verified fix:
Console path (summarized): Route 53 → Registered domains → select the domain → turn on “Auto renew”.