[Music]
hello everyone my name is Mathis and I'm
a cloud support engineer at a de Bresse
didn't know that you can add new users
on your instance EOS using the user data
feature from your ADA Blas ec2 console
is not a new so to need user accounts
that are available on your instance for
SSH connections other than the default
ones you might want to do this to
segregate duties between different
persons for example for those cases the
cloud in its services can save you from
having to manually create those users in
every new instance or having to set up a
more complex solution using centralized
director services or automation tools so
let's see how we can achieve this let's
walk through the steps to configure
cloud in each job to magically create a
regular user named admin if your
instance is already running you need to
stop it first also you are logged in to
the AWS management console navigate to
the AWS ec2 console and then select
instance on the left side menu rats
allocate your instance name select
instance state and then select stop then
retrieve your PIN file public key
depended upon on your OS you will do the
following in my case I will use Linux so
I move on to the terminal if you are
using Windows please see the link for
more information a terminal we use
ssh-keygen to create a public file from
your pain file let's change the instance
user data frame for that we are going
back to the AWS console for an existent
instance we'll do the following in your
AWS ec2 console right click the instance
name select instance settings and then
select view change in user data from the
article how can I add an additional SSH
user account with cloud in it and user
data for my ec2 instance we are going to
cop the cloud in each code so we are
going to paste the code on user data and
change the
foods with the correct username then we
are going to cop the public key from the
terminal and we will paste the public
key on the last line after that you just
need to click on save now you can start
your instance in your ada blessed ec2
console again right click your instances
name select instance state and then
select start click on yes start it may
take some time for instance to start
please note if you are launching a new
instance you might just need to add the
cloud init code at the third
configuration step of the launch
instance wizard choose the advanced
details option and the user data field
will appear live the Aztecs checkbox
selected and then paste the cloud init
code and then also have pasted code
proceed with it launch instant steps and
finish your instance requests as desired
normally the user data is executed only
on the first launch but the parameter
user groups always on the cloud final
model section will change this behavior
allowing the code to be recruited every
time distance is started you can also
change the user definitions such as
groups with the user belongs and if it
is authorized to the key to your
comments thanks for watching and happy
cloud computing from all of us here at
AWS
[Music]
you
[Music]