Triage and Remediation
Remediation
Using Console
Using Console
To remediate the Route 53 Domain Expiry in 7 Days issue in AWS using AWS console, follow the below steps:
- Log in to the AWS Management Console.
- Navigate to the Route 53 service.
- Click on the Registered Domains option in the left-hand menu.
- Select the domain that has an expiry date in 7 days.
- Click on the Renew button.
- Follow the on-screen instructions to complete the renewal process.
- Once the renewal is complete, verify that the expiry date has been extended to a later date.
Using CLI
Using CLI
To remediate the Route 53 Domain Expiry in 7 days issue in AWS using AWS CLI, follow these steps:Note: You can specify the number of years you want to renew the domain for by replacing
- Open the AWS CLI on your local machine.
- Check the expiration date of the domain by running the following command:
- If the domain is set to expire in 7 days or less, you need to renew it. Run the following command to renew the domain:
<number-of-years-to-renew>
with the desired value.- After running the renew command, you will receive a confirmation message with the details of the renewal. Verify the details and confirm the renewal.
- Once the renewal is confirmed, the domain will be renewed for the specified number of years and the expiration date will be updated.
-
Verify that the domain has been successfully renewed by running the
get-domain-detail
command again. - You have successfully remediated the Route 53 Domain Expiry in 7 Days issue.
Using Python
Using Python
To remediate the Route 53 Domain Expiry in 7 days issue in AWS using Python, you can follow the below steps:This script will update the domain registration for all the hosted zones that are expiring in 7 days or less and print the status of the update.
- Install the
boto3
library using the following command:
- Create an AWS IAM user with Route53 read-only access and generate the access key and secret key.
- Create a Python script with the following code:
-
Replace the
YOUR_ACCESS_KEY
andYOUR_SECRET_KEY
placeholders with the actual access key and secret key. - Run the script using the following command: