0 1 00:00:00,350 --> 00:00:05,430 Okay so now that we're finished with our lab, we can clean up those resources. 1 2 00:00:05,430 --> 00:00:09,150 So we need to work backwards like we normally would so we start off with our 2 3 00:00:09,150 --> 00:00:13,950 federated identity or our identity pool we need to remove that first, so what we 3 4 00:00:13,950 --> 00:00:22,230 do is we go to the dashboard and then we click on edit identity pool and then we 4 5 00:00:22,230 --> 00:00:30,199 scroll down to delete identity pool and then delete that identity pool and 5 6 00:00:30,199 --> 00:00:34,890 that's all we have to do for the identity pool quite straightforward, with 6 7 00:00:34,890 --> 00:00:37,559 the user pool there's a few things that we need to do first so we need to go to 7 8 00:00:37,559 --> 00:00:43,129 our domain name and delete that domain 8 9 00:00:44,629 --> 00:00:49,289 which is done and then once we've done that we can go to our general settings 9 10 00:00:49,289 --> 00:00:56,789 again and delete that pool and we just need to type in delete and delete that 10 11 00:00:56,789 --> 00:01:02,699 pool okay so that's how easy it is to do that and of course we go into our s3 11 12 00:01:02,699 --> 00:01:08,640 bucket and we can delete our bucket as well, so we select our bucket and delete 12 13 00:01:08,640 --> 00:01:18,840 that bucket, I'll just copy the name of it first, okay and there goes out 13 14 00:01:18,840 --> 00:01:22,530 we've cleaned up everything now we'll have a look at some of the ways that we 14 15 00:01:22,530 --> 00:01:28,080 can improve the performance of this JavaScript SDK, okay so there are a 15 16 00:01:28,080 --> 00:01:34,220 number of ways that we can reduce the size of the SDK for JavaScript and to 16 17 00:01:34,220 --> 00:01:37,829 increase the performance of our application while it's downloading that 17 18 00:01:37,829 --> 00:01:44,159 and probably the best way would be to use Webpack or Browserify or whatever 18 19 00:01:44,159 --> 00:01:48,210 you want to use that it's going to basically look at the import statements 19 20 00:01:48,210 --> 00:01:54,600 on your react.js app or whatever you're using and basically optimize that for it 20 21 00:01:54,600 --> 00:01:59,490 so that you you're only bringing in what you need to bring in there is another 21 22 00:01:59,490 --> 00:02:05,340 way and it's specifically for the AWS SDK for JavaScript it's not for the 22 23 00:02:05,340 --> 00:02:09,569 other SDKs but just for that one which is quite important because there is the 23 24 00:02:09,569 --> 00:02:13,379 big one because it has all of the SDKs for all 24 25 00:02:13,379 --> 00:02:15,659 of the AWS services, so if you're pulling 25 26 00:02:15,659 --> 00:02:21,659 that one in it's a bit big, so we get to it by going to sdk.amazon.com/builder/js 26 27 00:02:21,659 --> 00:02:27,360 and there's a link to that in the lab notes so have a 27 28 00:02:27,360 --> 00:02:29,970 look at that when we get there it's going to have some stuff already 28 29 00:02:29,970 --> 00:02:33,239 pre-selected for us we're just clear all that for now 29 30 00:02:33,239 --> 00:02:38,670 because all we need is Cognito and s3 so what we can do is just in our browser 30 31 00:02:38,670 --> 00:02:44,340 just search for Cognito and there we go we've got the Cognito identity pools 31 32 00:02:44,340 --> 00:02:51,870 that we need to access, we have the AWS Cognito service being our user pools 32 33 00:02:51,870 --> 00:02:57,120 that we need to access as well and the sink the Sync database as well the 33 34 00:02:57,120 --> 00:03:03,959 Cognito Sync key store we need to access that, also we need to access Amazon s3 and so 34 35 00:03:03,959 --> 00:03:08,370 there are libraries there for Amazon s3 that we can add there too that is how 35 36 00:03:08,370 --> 00:03:13,909 easy it is to do it this way and very, very quick and easy I love it 36 37 00:03:13,909 --> 00:03:18,690 so we've got here the build configuration we've got identity user 37 38 00:03:18,690 --> 00:03:23,879 pools and sync and s3 there so we just click on build after certain amount of 38 39 00:03:23,879 --> 00:03:29,579 time it'll build that for us and there we can see we've got our AWS SDK which 39 40 00:03:29,579 --> 00:03:35,370 will be the latest stable version of the SDK which is good and it will be 40 41 00:03:35,370 --> 00:03:43,049 optimized to include only Cognito and s3 and the basic AWS stuff such as config 41 42 00:03:43,049 --> 00:03:48,930 and all that sort of thing that we need so that brings us to an end if you've 42 43 00:03:48,930 --> 00:03:54,629 enjoyed this make sure you go out there and give it a good rating and it's a 43 44 00:03:54,629 --> 00:03:58,109 great it's been a great lab, you've got a lot of stuff that's going 44 45 00:03:58,109 --> 00:04:02,310 on here and it's going to be really good to do these sorts of very long and 45 46 00:04:02,310 --> 00:04:05,970 in-depth and intricate labs because it's going to give you the confidence that 46 47 00:04:05,970 --> 00:04:10,590 you need to be able to use these JavaScript SDKs and if you're going on 47 48 00:04:10,590 --> 00:04:14,909 to become an AWS certified developer then you're going to have to have a lot 48 49 00:04:14,909 --> 00:04:20,070 of confidence in using the AWS JavaScript SDK as well, so I've enjoyed 49 50 00:04:20,070 --> 00:04:25,610 it and I look forward to seeing you in the next lecture