Hey, everyone.
And welcome back.
Now, in the earlier video, we were discussing about the basics of secrets management and Secret Manager
service.
Now, in today's video, we'll go ahead and explore the basics of Secret Manager service from a practical
point of view.
Now, from the console, let's quickly go to the Secrets Manager service.
You can go ahead and quickly store a new secret.
So let's store our first secret.
Now, there are multiple secret types that are available.
You have one for the birds, one for the document, DB, Redshift and others.
However, we are going to keep it simple.
We are going to use the other type of secrets.
It can be API, keys, tokens, etc. So within your let's say I'll say admin user and in the value I'll
say admin password.
And here the encryption key also plays an important role.
The default encryption key is present.
However, in case if you'd like, you can also create your own encryption key based on CMS through which
all of these secrets will be encrypted once then you can click on next within.
You will have to provide a secret name.
I'll just say app credentials.
You can add a description if you like.
We'll keep it simple.
Let's do it next.
The next page is related to the secret rotation in case, if you'd like to rotate the secrets, you
can achieve that using the lambda function that you define.
However, at this stage, we'll keep it simple.
Let's do our next.
This is the review screen, and let's go ahead and store the secret.
So at this stage, if you'll refresh, our secret of app credentials is available.
Now, if you look into the sample code, they have already provided sample code for Java Python.
So this is the code that you can use as part of your application to fetch the secret.
Now, as you're discussing, you can also retrieve the secret value here.
Now, in order to retrieve the secret value.
You need to have specific permission.
So the reason why we are able to see the plaintext secret key and plaintext secret password because
the user has the appropriate permission.
Otherwise you will not be able to see all of these details.
All right.
So this is a very high level overview about the basics of secrets manager and with this will conclude
today's video.