Now.
We have revoked the service.
Now we want to terminate.
ec2 instance that is running.
So we will go to our cloud console.
In our cloud console we have already logged in as a from the account AWS amazon.com
we have supplied our username and password.
Now in our case, we will go to our ec2 service.
So when we are going to click on this, it is going to show you the resources that are running.
So in my case, our one instances is running of apache web server that we launched when we were saying
how to launch a https site.
So here it is, the Apache Web server that is running.
So we will select this because we no longer need this.
So what we are going to do is instance state.
So we are going to click on Terminate.
So we will click here and now the instance will get a minute.
It will take little bit time, one minute.
So what it is giving the information successfully terminated.
So after sometimes when we are going to check on the status, it is going to show that the instance
got terminated now the instance is not there so we can go to the that ec2 dashboard
so there is running instances is zero here also it is showing instances but that is terminated.
So no longer that instance is available.
You can delete other things also like security groups that mean whatever resources you are having in
this cloud you can delete.
So when we click on security group that can also be deleted, in our case, whatever we created, we
can delete by using this.
So in our case we have successfully terminated the instances.
no instance it is showing running now we will go into our we want to remove the DNS entries
also.
So what we will do because in my case I registered the domain from GoDaddy.com.
So we will go in to our domain, we will click on domain, we will go to the ocloud.in.
Then we are going to click manage DNS.
So when we were making the entries we have made the three entries one was your A records one was your alias
one record regarding canonical name.
So in our case, what we are going to do, we are going to delete all three records.
This one.
And this one.
So one by one, we can delete.
It is saying, do you want to delete?
So this got deleted.
That means whatever we've done for implementing that site https, that entries we are deleting, because
now in our case no Web server.
is running in cloud.
So we do not want those entries to be in our DNS.
So here again, we are going to delete.
So these were the three original entries that we are keeping rest we have deleted.
So in our case, first we revoked the certificate.
So then what we did first we revoked the certificate.
Then we terminated the instance.
And then we remove the DNS records.
So now our no resources running.
So that was because sometimes even for the experimental, we launch certain resources now we want to free
resources.
So that is why how you can do these revoke certificate, terminate ec2 instance, and remove DNS records.