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