Clean up resources
Clean up resources
Remove inbound endpoint
- Access Route 53 Management Console
- In the left sidebar, select Inbound endpoints
- Check the Inbound endpoint related to the lab
- Select Delete
- Type delete in the empty box and press Delete

- Select Delete
- Type delete in the empty box and press Delete

Remove Resolver Rule
- Access Route 53 Management Console
- In the left sidebar, select Rules
- Click on the Rule related to the lab to view its information
- In the VPCs section, check the VPC connected to the Rule and select Disassociate
- Type disassociate in the empty box and select Disassociate

- Wait 1-2 minutes to disconnect from that VPC.
- In the Rule information page, select Delete
- Type delete in the empty box and press Delete

Delete Outbound Endpoint
- Access Route 53 Management Console
- In the left sidebar, select Outbound Endpoints
- Check the Outbound Endpoint related to the lab
- Select Delete
- Type delete in the empty box and press Delete

- Select Delete
- Type delete in the empty box and press Delete

Delete AWS Managed Microsoft Active Directory
- Access Directory Service Management Console
- In the left sidebar, select Directories
- Check the Directory related to the lab
- Select Actions and select Delete directory
- Type confirm in the empty box and press Delete

- Select Actions and select Delete directory
- Type confirm in the empty box and press Delete

- In this case, the HybridDNS stack has created two nested stacks, and when you delete the HybridDNS stack, the two nested stacks are also deleted.
- Access CloudFormation Management Console
- In the left sidebar, select Stacks
- Check the HybridDNS stack and select Delete
- In Delete stack select Delete
- Wait a few minutes until CloudFormation removes all resources

- Check the HybridDNS stack and select Delete
- In Delete stack select Delete
