Instructor: So let's get started with service catalog.
So I'll just click here and say service catalog.
So what we're going to do next is click on it
and as we can see we are directly on this UI
that is literally a service catalog.
So we get the logo, AWS Service Catalog right here,
and we can get product lists, portfolio lists, etc., etc.
So let's do something pretty cool at first,
we're going to change things.
So we're going to change a logo
and I want to use the logo of my company
and maybe I want to change also the primary color
to something like blue.
I'll just use the blue of my company, here we go,
and apply it.
So this is literally to show you that
it is a service catalog
and so you can brand it however you want.
So for whoever you work for,
you can just brand service catalog
and make it look like it's yours.
Now as an admin, we're going to be able to get
provision products and portfolios,
where as a user we can see the product lists
and the provision product lists.
So let's get started as an admin.
As an admin I'm going to click on product lists,
and I want to upload a new product.
Let me just close these prompts, here we go.
So this product is going to be called MyStack.
Whatever you want, it can be whatever you want.
And said this is an example product.
Provided by, so you can say whoever provided this,
so it could be an admin, it could be Stephane,
and if there's a vendor
you can even set the vendor right here,
but this is not a mandatory field.
Click on next, and here we can enter some email contact
if you wanted to for support.
This is not something you have to do,
and then the support link for supporting this product,
and the support is Christian, but we don't need this.
Finally, we need the version details so we can upload
a template file, and here I'm going to click on
choose file and I will choose,
so in my code there is a service catalog folder.
I'll select lamp-stack.
So this is just the stack we launched
before in cloud formation,
which contains just a lamp stack very quickly made
and that template comes straight from AWS.
Okay, the version title, we'll call it v1.0,
and we can say first version as the description.
Click on next, and now we're done.
We can review everything.
So, okay, we have our stack, this is an example product,
it's provided by me, and here is my contact for support,
and here is my version source, and my version title
and everything like this.
This is perfect.
I'll create this product, and now we have our first product
being created called MyStack and it will appear
in a few seconds.
Here it is.
Okay, now we have to assign this product to a portfolio.
So as an administrator I'm going to create a portfolio
and I'll call it MyWebDevs and this is for my
web developers, and so let's say
portfolio for apps for my web developers,
and the owner again is going to be myself,
so click on create.
And now in this portfolio I'm going to be able to add
product to it, so I can click on add product,
and upload my stack, click on my stack and add
the product to the portfolio.
Okay, excellent.
So now in this portfolio, MyWebDevs,
we start having some products.
So if I refresh, as we can see now MyStack is there.
And here if we wanted to we could add some users
to be able to do stuff on our portfolio.
So this is where we can set up some users.
We can set up some constraints in the way the products
are launched by users, but then more importantly,
we can assign user groups and roles to be able
to use this portfolio.
So click on add user group or role,
and here I'm able to say okay my admins,
and maybe the user Stephane,
and maybe some roles if you wanted to,
are able to access this portfolio.
So I click on add access, and here we go.
Now my users group and roles can successfully
access all the products which are in this portfolio.
Okay, so how does it work now?
Then I have to switch accounts,
so I'm going to log in as my user Stephane,
so for this I go to my sign-in for my users,
here is my account ID,
I have a username that I've created from before
and a password, and I just click on sign in.
So I'm now signed in, and I can go to my service catalog,
and in there, in my portfolio, just make sure you are
in the right region, by the way,
in my product list on the top left-hand side as a user,
I'm able to see MyStack
that was assigned as something I can create.
So I can basically launch the product,
and here I say okay, what do I want to launch?
So I'll say MyStackLaunched,
and I'll just not include any spaces,
I will select version 1.0,
and I will just launch it as,
and you can just say whatever option you want.
It's probably the same because I added twice the same user,
anyway, we'll just launch this one,
click on next, the parameters is whatever parameter
I want to set for MyStack.
So this is like cloud formation parameters,
just like before.
So here the key name for my EC2 instance is going to be
AWSCourse, my database password is going to be password,
my SSHLocation is going to be from anywhere,
my database is my database,
user I'll call it Stephane,
and the root password is going to be password,
this looks good,
and then the instance type is going to be a t2micro,
here we go, click on next,
and next here we could have added some
tag options if we wanted to.
Next, and then next, and here we go
this looks just like cloud formation, and click on next,
and here basically what we've done is that
we've provisioned this internal application
directly through this self service.
And so this is just like the
cloud formation template though.
It will get launched, and what we get as a result
is how we can use that product directly.
So think of the possibilities that you can have
when you have some users who don't need to know AWS
but just need to access and launch cloud formation
templates on demand.
This is how they would do it.
This is how they would do it through the service catalog.
So now I have to wait for MyStack to be created,
so I'll just wait a little bit.
So now MyStack has succeeded, the status is succeeded,
and so if we scroll down we can see that there is
a website URL we can access directly.
That's the output straight from my cloud formation template,
so this is why outputs are super important
when you start using service catalog.
And here we go, I can start using my lamp stack
and do whatever I want with this if I wanted to,
but I don't have to, but that's if I wanted to.
And so that's it, that's how service catalog works,
and if you wanted to just stop using this application
you would click on terminate,
and then you will just go ahead and terminate
the entire application stack.
So that's it.
You've seen service catalog.
Just remember it's literally a service catalog.
So you create portfolios and products, and then you allow
users to provision them, and that's it.
I will see you in the next lecture.