- So let's have a look at
Amazon Elastic Beanstalk.
And this is just an introduction
in the Solutions Architect course,
if you really wanna go deep dive on it,
this is something that is treated very heavily
at the developer exam.
But right now this is just an overview,
just to show you how it works.
So let's create an Amazon Elastic Beanstalk application.
I'll call this one demo Beanstalk.
Scroll down.
Then we have to choose a platform.
So you can see Beanstalk can run many different things
from Docker to some programming languages and so on.
And to keep things simple, I'm going to use Node.js.
You can use whatever default are there.
They will change over time, but just keep them as default.
Then we could upload our own code, but we don't have that.
So let's just go ahead and deploy a sample application.
But before we create this application
I wanna show you the kind
of options that are offered by Elastic Beanstalk.
So when you click on this,
you have a list at all the configurations possible.
And you have configuration presets,
for example, single instance,
that is going to be Free Tier eligible,
or single instance, using a Spot Instance,
or high availability or high availability with Spot
and On-Demand instances or any type of custom configuration.
So we'll remain within the Free Tier.
So we'll choose that,
but let's have a look at what the options are.
So the platform we just chose from before.
Then we can enable some kind of software
on top of Beanstalk.
We can choose whatever instances that we want,
customize them in terms of storage and so on.
The capacity.
So if we want to have, and I will show you this right now,
if we want to have one or multiple EC2 instances
if they're load balanced or not, if they're
in Auto Scaling group,
if you want on demand or spot instances.
So you can see, you can customize a lot of things.
The instance types that we want to allow for this,
so t2.micro, t2.small, the AMI,
the triggers for Auto Scaling.
So as you can see, Beanstalk is kind of like a summary
of everything that we've learned so far, right?
Load balancer, if you have one, then how do you do updates?
What security you have, the monitoring,
the managed updates notifications, network configuration
and if you wanna add a database.
So all these settings you do not have to know,
but what I wanna show you is that using Elastic Beanstalk,
all we had to do and to choose was,
'Hey, what platform do we want?'.
Let's upload our application code.
And all of a sudden we'll have a fully
managed platform that encompasses a lot of the features
we need to run this application without us specifically
knowing about EC2 instances,
load balancers, auto scaling groups
and configuring them independently.
So let's go ahead and just create this sample application.
Right now with the default settings, which is the Free Tier.
So once you do this, it's going to actually
create a Beanstalk environment.
And this can take a while.
And behind the scenes, there's a service that will have
a look very quickly at well, at it in the course
which is CloudFormation.
And so if you go to CloudFormation,
in here you will find a stack.
And this is this stack right here,
and this is going to actually create
all the infrastructure needed
for our Elastic Beanstalk application.
So this is something that's really
out of scope in terms of understanding how that works,
but just so you know, Beanstalk behind the scenes leverages
CloudFormation to deploy your application.
So I'm going to close this
and all the feedback is coming from here.
So now we have to wait five minutes
until everything is gonna be created.
And as you can see this created a security group,
this created an Elastic IP because we are using
a single instance right now, deployment.
If you did change some configuration
and not use a single instance,
you will see an auto-scaling group
and a load balancer in here.
So now I get the feedback that the application
is successfully launched and using this URL right here,
by clicking on it,
I can get access to this congratulations page
which represents the fact that my Node.js
application has been deployed on Elastic Beanstalk
and this is the result of it.
I can access it using a URL, which is really cool.
And if I just go into the EC2 console
to see what has been created,
So I can go in here, I can see
that one instance is running, and this is this one.
And if I click on it
as you can see, my instance is running.
It has a public IPv4 address.
And that address is if we have a look
on the left hand side, it's an Elastic IP right here.
So this is because I'm running in the single instance mode.
So that's why we have an Elastic IP.
But if you are not running in signal instance mode
you will not see this.
And then if we go into security groups
we will find a security group just
for my Beanstalk environment right here.
So this is just for my instance that has been created.
And if I go into Auto Scaling group, we can see
that a Auto Scaling group is managing my EC2 instance
on Elastic Beanstalk, okay?
So that's it, that's just a very short introduction
into Elastic Beanstalk.
When you're done, you go to applications
you take this one, action, and then delete application.
You copy the name and delete it and you're done.
So, yeah, that's it for this lecture.
I hope you liked it.
And I will see you in the next lecture.