1
00:00:00,560 --> 00:00:07,100
In this video, we are going to destroy our resources with using a Cdcc Commons.

2
00:00:07,370 --> 00:00:13,430
This is a very important step that we should not forget during the course because we are using the free

3
00:00:13,430 --> 00:00:17,270
tier and we don't want to charge extra amount of money from the ad.

4
00:00:18,230 --> 00:00:23,810
In order to do that, you should always clear resources after you are leaving from your computer.

5
00:00:23,840 --> 00:00:28,430
We are following the best practices the code from the Amazon CTO one on vocals.

6
00:00:28,760 --> 00:00:34,290
So let's come back to our application and run the CDK destroy command with CDK.

7
00:00:34,310 --> 00:00:38,270
It is very easy to set up and clear your infrastructure with.

8
00:00:38,270 --> 00:00:41,360
Follow me to Cdcc deploy and destroy commands.

9
00:00:41,600 --> 00:00:47,300
As you remember that we are provisioned all this tech with running on the Cdcc.

10
00:00:47,330 --> 00:00:55,220
Deployment is the same way we will follow the clear all resources be running Cdcc District Command.

11
00:00:55,400 --> 00:01:02,780
Now we will destroy all application resources to avoid incurring any cost from the bucket and as case

12
00:01:02,780 --> 00:01:05,470
definition what we've created in the last videos.

13
00:01:05,720 --> 00:01:09,080
So let me open a new stake.

14
00:01:09,830 --> 00:01:13,850
And we are going to run CDK destroy command.

15
00:01:15,070 --> 00:01:19,510
So basically this command will clear all resources.

16
00:01:19,510 --> 00:01:21,580
What we have created with the cdcc.

17
00:01:22,270 --> 00:01:23,290
So right.

18
00:01:23,320 --> 00:01:24,730
Cdcc destroyed and hit the.

19
00:01:27,180 --> 00:01:30,240
Of course this is also need confirmation.

20
00:01:30,570 --> 00:01:33,510
We are going to set y character for yes.

21
00:01:33,720 --> 00:01:37,710
So as you can set this asking for us or if you want to delete.

22
00:01:37,710 --> 00:01:46,740
Yes, set y and hit enter and it's going to destroy our whole stake what we have develop and provisioned

23
00:01:46,740 --> 00:01:47,830
in the last videos.

24
00:01:48,960 --> 00:01:50,670
So this is very powerful feature.

25
00:01:50,670 --> 00:01:56,580
Instead of removing one by one CDK provide to remove all resources with one command.

26
00:01:56,610 --> 00:02:01,230
This will remove all resources under our CDK stick+.

27
00:02:01,320 --> 00:02:05,760
As you can see the progress in here and also we can verify the.

28
00:02:08,760 --> 00:02:10,200
Operation under the sticks.

29
00:02:10,230 --> 00:02:13,500
You can see that the status is delete in progress.

30
00:02:13,920 --> 00:02:19,140
So you can also follow the delete progress from the logs of the Cdcc District Command.

31
00:02:19,410 --> 00:02:24,570
One by one they are destroying our S3 bucket and Amazon HQ.

32
00:02:25,510 --> 00:02:31,690
And of course, removing all defined permissions, policies, roles and so on.

33
00:02:33,420 --> 00:02:36,510
So we will wait for a while when destroying our application.

34
00:02:36,510 --> 00:02:44,370
After that, we will check our resources on the management console and you can also follow the progress

35
00:02:44,370 --> 00:02:46,260
from the console.

36
00:02:46,590 --> 00:02:51,390
The cloud formation page and text is delete and in progress.

37
00:02:51,810 --> 00:02:53,750
Yes, delete is completed.

38
00:02:53,760 --> 00:02:57,480
So as you can see, that Halo CD case is destroyed.

39
00:02:57,660 --> 00:03:01,320
So go to the management console and see what's happened.

40
00:03:01,620 --> 00:03:05,250
If you refresh the page, you can see the Halo CD.

41
00:03:05,250 --> 00:03:08,730
K is not active anymore.
