‫So let's practice using AWS Cloud9.
‫For this, you go into the Cloud9 console
‫and you create an environment.
‫Now, this is going to be within the free tier,
‫if you have still the free tier available to you,
‫and you're going to use a T2 Micro.
‫So I will create an environment, call it DemoCloud9,
‫and then for the environment type
‫you can either choose a new EC2 instance
‫or an existing instance that you want to deploy Cloud 9 to.
‫But we'll use a new EC2 instance.
‫And then for this instance, we'll use a T2 Micro,
‫which is going to be free tier eligible.
‫We'll use Amazon S2, and there's a timeout
‫of 30 minutes, which means that after 30 minutes
‫the instance will go into hibernation.
‫Next we go under how the network setting,
‫how to connect to your instance
‫and actually interact with it.
‫So you can either use SSH, but this will open ports for you,
‫or you can use Systems Manager
‫and this will create a few roles
‫but then we can connect directly
‫without opening any inbound ports
‫on our underlying EC2 instance.
‫So we'll use Systems Manager and then for VPC settings
‫this is where your instance is going to be deployed
‫so it shows your VPC and then
‫if you have a subnet preference or not.
‫So let's click on Create, and this will actually create
‫an EC2 instance and then deploy Cloud9 on it.
‫So let's just wait a little bit.
‫Okay, so my demo environment is not created
‫so I can just click on open in Cloud9.
‫And as you can see, it's going to load a web browser
‫and Cloud9 is going to be on it.
‫So here we are in Cloud9.
‫It is very handy.
‫So what do we have?
‫We have a terminal here, and this terminal actually
‫already is configured with AWS credentials.
‫So if I do aws s3 ls, for example,
‫it's going to list all my buckets in my account.
‫So this comes preconfigured with managed credentials,
‫but if you wanted to disable them,
‫you would go under Preferences, scroll down,
‫you'd look at settings for AWS,
‫and then you could disable
‫the AWS-managed temporary credentials.
‫But we'll keep them because they're very handy.
‫Here on the left hand side
‫you can actually look at your directory structure
‫and we have the README file right here
‫that we can edit if we wanted to, which is super handy.
‫And you can go ahead and create any kind of file
‫you wanted to or folders or stuff like that.
‫So this is a IDE on the cloud
‫so you can actually do all the things you would do
‫with an IDE, such as edit, et cetera, et cetera.
‫You can even run your code if you wanted to.
‫You can have tools to have micros and so on.
‫On the left hand side, you have,
‫if you're using source control such as Git,
‫you can actually initialize a repo
‫or clone one or manage source control from there
‫such as adding and committing and pushing.
‫You have the AWS Explorer where you can actually
‫explore all the resources
‫within your environment directly from the Cloud9 console.
‫So here I have an API and API Gateway.
‫If I go to ECR, I have, for example,
‫this ECR repo available to me and so on,
‫so that's very handy.
‫Here are all my S3 buckets.
‫So all of this can be explored again within Cloud9,
‫which is super cool.
‫And you have developer tools
‫such as the CDK or Code Whisperer.
‫On the right hand side,
‫you can actually share your environment with people.
‫So here is the links to share
‫and then you can say who has read/write access
‫to it and so on, so you can invite
‫specific IAM usernames and then,
‫or create a user, and then you invite them
‫and they will have access
‫to the same environment as you, which is awesome
‫because then you can do some pair programming.
‫Finally, you have your files outlined
‫if this is relevant and the debugger
‫if you wanted to run stuff and debug.
‫Finally, the Preference pane is here.
‫So as you can see, it is a full-blown cloud IDE,
‫which is very exciting.
‫Now, if we go back to this console of AWS
‫and I go into EC2, I can see that one instance is running.
‫This is the instance that gets created
‫by Cloud9 and it's properly configured,
‫and as you can see, it is managed here.
‫So this is how Cloud9 is actually running.
‫So to be done, just take your environment and delete it
‫and we're good to go because we're now going
‫to start developing stuff in the cloud right now,
‫but you get the idea of the capability behind Cloud9.
‫Okay, that's it for this lecture.
‫I hope you liked it, and I will see you in the next lecture.