1
00:00:00,720 --> 00:00:04,950
In this video, we are going to click set up of our.

2
00:00:06,750 --> 00:00:09,420
But let's remember what we have done in the last video.

3
00:00:09,450 --> 00:00:16,410
In the last video we have downloaded to a silly version two and verify that it is installed successfully

4
00:00:16,410 --> 00:00:17,970
in our local computer.

5
00:00:18,060 --> 00:00:25,350
And we solve the the version number is starting with two and we run basically a double digit version

6
00:00:25,350 --> 00:00:25,950
command.

7
00:00:26,340 --> 00:00:26,990
Okay.

8
00:00:27,000 --> 00:00:35,040
Now in this video, we are going to click set up or will see how we can set up the CLI.

9
00:00:35,490 --> 00:00:38,400
As you can see in here, it says different commands.

10
00:00:38,400 --> 00:00:41,340
But we will start with the configured command.

11
00:00:41,370 --> 00:00:45,180
Is the fastest way to set up our cell installation.

12
00:00:46,320 --> 00:00:52,800
I will show you how to quickly configure the basic settings that the command line uses to interact with

13
00:00:53,400 --> 00:00:54,240
resources.

14
00:00:54,450 --> 00:01:00,630
These include your security credentials, the default output format, and the default a reason.

15
00:01:01,350 --> 00:01:05,760
Basically we will following the documentation is the same way.

16
00:01:05,850 --> 00:01:13,620
So if we come to the our web application web site, which is the installation part, so as you can see

17
00:01:13,620 --> 00:01:20,460
that we are a modern user guide for version two and we have installed successfully and it is time to

18
00:01:20,460 --> 00:01:22,150
set up these obviously.

19
00:01:22,170 --> 00:01:28,530
So for that purpose I'm also sharing the links, but you can come here and see that quick setup link

20
00:01:28,530 --> 00:01:30,570
in the left hand side.

21
00:01:30,570 --> 00:01:36,150
If you click this quick setup, you will see the whole instruction how we can set up our ACL.

22
00:01:37,560 --> 00:01:43,950
And basically in most cases we are going to use a configure command is the fastest way to set up our

23
00:01:44,310 --> 00:01:45,600
ACL installation.

24
00:01:45,990 --> 00:01:52,710
When you enter this command, the CLI prompts you for pieces of information.

25
00:01:52,710 --> 00:01:54,030
These are the for information.

26
00:01:54,030 --> 00:02:02,040
When you run this command, it will ask to us a W's access key secret access key default region name

27
00:02:02,040 --> 00:02:04,020
and the default output format.

28
00:02:04,530 --> 00:02:11,940
So the aid will stores this information in a profile profile documentation which name default in the

29
00:02:11,940 --> 00:02:12,930
credentials file.

30
00:02:14,130 --> 00:02:18,990
This will be the a collection of settings of the profile file in your local computer.

31
00:02:19,020 --> 00:02:24,810
You can change this profile and credentials with creating new profile or updating existing existing

32
00:02:24,810 --> 00:02:28,290
credentials by choosing to add configure set commands.

33
00:02:28,620 --> 00:02:34,560
It has also extended information link about this ad sales, sales profile and credentials.

34
00:02:34,590 --> 00:02:37,470
I will also share this link individual resources.

35
00:02:38,820 --> 00:02:42,670
So but in our case, we will follow the basics, right?

36
00:02:42,690 --> 00:02:49,350
If you type the configured command to the command window, this will ask you for basic information that

37
00:02:49,350 --> 00:02:50,310
we need to fill.

38
00:02:50,370 --> 00:02:53,260
You can see example of configuration with sample values.

39
00:02:53,280 --> 00:02:57,600
This is the example values and these are the values access.

40
00:02:57,600 --> 00:02:59,250
Key secret access.

41
00:02:59,250 --> 00:03:03,210
Key values comes from the our user definition of a blaze account.

42
00:03:03,240 --> 00:03:05,670
We will grab those information from that.

43
00:03:05,850 --> 00:03:07,820
And the configurations are options.

44
00:03:07,830 --> 00:03:12,240
The other configuration, which means the region name and output format is optional.

45
00:03:13,200 --> 00:03:17,040
You can skip as a blank and a blaze will get the default values.

46
00:03:17,040 --> 00:03:23,580
But it's good to set explicitly your region name and output format to see data format when you hit some

47
00:03:24,060 --> 00:03:24,730
commands.

48
00:03:25,080 --> 00:03:32,430
So let me start with the how we can grab this access kid and secret key ID come to the Willis management

49
00:03:32,430 --> 00:03:36,390
console, sign in with the user.

50
00:03:36,420 --> 00:03:37,620
Let me see.

51
00:03:37,680 --> 00:03:41,010
I'm not sure I can see with the sub user.

52
00:03:41,130 --> 00:03:44,700
Open the IAM identity and access management.

53
00:03:48,830 --> 00:03:55,240
Com to user section here my user and you also creating a new user.

54
00:03:55,250 --> 00:03:57,100
You can open the user.

55
00:03:57,110 --> 00:04:00,470
I am user and if you scroll down.

56
00:04:04,510 --> 00:04:07,450
Yes I can see in the sub user now.

57
00:04:07,480 --> 00:04:13,450
So that's why we should be looking with the root user in order to get these access and.

58
00:04:14,640 --> 00:04:15,500
Secret access.

59
00:04:15,990 --> 00:04:18,870
So for that purpose, I'm going to sign out.

60
00:04:20,620 --> 00:04:22,090
Sign into the console.

61
00:04:23,530 --> 00:04:26,110
And sign with the root username.

62
00:04:31,130 --> 00:04:32,060
Okay.

63
00:04:39,790 --> 00:04:45,340
It is really hard to feel this capture in either place.

64
00:04:47,380 --> 00:04:47,980
Okay.

65
00:04:47,980 --> 00:04:48,760
Very good.

66
00:04:51,270 --> 00:04:51,570
Okay.

67
00:04:51,570 --> 00:04:55,320
Now we are going to log in with our root user.

68
00:04:55,890 --> 00:05:02,790
And by this way we can get the secret and access keys of our newly created IAM user.

69
00:05:02,820 --> 00:05:04,380
Open the iam.

70
00:05:04,920 --> 00:05:06,600
Go to the user section.

71
00:05:07,330 --> 00:05:13,360
And click the new user, which you have defined in the previous sections.

72
00:05:15,280 --> 00:05:22,300
If you open the users and the naive user, you can see the security credentials tab in here.

73
00:05:22,360 --> 00:05:26,840
If you click this section, you can scroll down and see the access key.

74
00:05:26,860 --> 00:05:29,470
What we created when we created this user.

75
00:05:29,680 --> 00:05:36,580
So you can copy the access key in here, but there is no secret key because it is very important to

76
00:05:36,700 --> 00:05:37,460
you.

77
00:05:37,600 --> 00:05:40,090
This is also not showing us the secret key.

78
00:05:40,180 --> 00:05:43,930
If you lose or forget your secret key, you cannot retrieve it.

79
00:05:43,960 --> 00:05:47,710
Instead, create new access key and make the old key inactive.

80
00:05:47,740 --> 00:05:49,180
This is the best practice.

81
00:05:49,180 --> 00:05:53,980
So when I say that when we are creating this user, please note the access key and secret.

82
00:05:53,980 --> 00:05:54,730
Okay.

83
00:05:54,760 --> 00:06:01,180
If you didn't note that you should create new access by making inactive this one.

84
00:06:01,390 --> 00:06:03,580
So let me show how we can do that.

85
00:06:04,300 --> 00:06:06,040
Click the Create Access Key.

86
00:06:06,610 --> 00:06:11,560
And as you can see that we have created a new access key and the security in here.

87
00:06:11,560 --> 00:06:14,620
You can click the show button and copy the secret key.

88
00:06:14,890 --> 00:06:17,170
And there is some warnings I would like to show also.

89
00:06:17,210 --> 00:06:23,800
Never post your secret access key on public platforms like GitHub, so you should only store in this

90
00:06:23,800 --> 00:06:30,010
access key and secret access in your local computer and you don't upload any other source control system.

91
00:06:30,010 --> 00:06:35,710
It is very important so you can generate this access key from this location and you can inactive the

92
00:06:35,710 --> 00:06:38,140
old one, which you forget the secret key.

93
00:06:38,470 --> 00:06:43,090
Okay, so why we are grabbing this access key and secret access key?

94
00:06:43,120 --> 00:06:47,290
Because the our main usage is the programmatic course.

95
00:06:47,290 --> 00:06:55,030
We are going to go into course to a place with using the from the SLA, using the SDK and make the direct

96
00:06:55,030 --> 00:06:56,820
API API calls.

97
00:06:56,860 --> 00:07:03,610
This will be provided to make API calls to the resources we are using data with HCI and CDK.

98
00:07:04,360 --> 00:07:05,510
Okay, very good.

99
00:07:05,530 --> 00:07:08,320
I'm not going to remove access key enough.

100
00:07:08,320 --> 00:07:11,560
I'm going to remove this unnecessary user.

101
00:07:11,560 --> 00:07:12,670
I'm not using this user.

102
00:07:12,670 --> 00:07:21,540
So that's why I would like to delete new user and I will continue it to my own user, which is the mammoth

103
00:07:21,840 --> 00:07:22,340
here.

104
00:07:22,510 --> 00:07:23,290
Okay.

105
00:07:23,440 --> 00:07:28,330
So you understand how we can get the user role in our application.

106
00:07:28,330 --> 00:07:35,290
So let me come back to our documentation and now we will basically run the configure command and we

107
00:07:35,290 --> 00:07:41,410
provide this access key ID and secret access, key ID information in our configuration page.

108
00:07:41,980 --> 00:07:48,670
Please open the command window and right to place configure.

109
00:07:50,290 --> 00:07:54,130
So see that we it is expecting to us an access gate.

110
00:07:54,160 --> 00:07:59,860
I'm not going to provide anything because I have already configured before you can set the access key

111
00:07:59,860 --> 00:08:04,300
in here and after that click the enter and this will be asked to you.

112
00:08:04,300 --> 00:08:05,590
Secret Access Key.

113
00:08:05,590 --> 00:08:10,090
We can give the secret access key and after that the default login name.

114
00:08:10,090 --> 00:08:13,840
You can give the default name or you can leave as it is.

115
00:08:13,840 --> 00:08:16,630
That will be follow the basics.

116
00:08:16,780 --> 00:08:23,770
And, and the last output is the output format we can give JSON or HTML format.

117
00:08:23,770 --> 00:08:30,100
It's up to you or you can give the empty character and this will be get to default one.

118
00:08:30,820 --> 00:08:31,380
Okay.

119
00:08:32,010 --> 00:08:32,460
Okay.

120
00:08:32,770 --> 00:08:39,340
After you have entered these parameter values from your computer, you have successfully configured

121
00:08:39,340 --> 00:08:43,000
our A list and it is ready to use now.

122
00:08:43,060 --> 00:08:49,990
So that means we can able to interact our resources with the user what we have defined.

123
00:08:50,140 --> 00:08:58,450
So that means we can do everything from the management console or using the SLA with this user because

124
00:08:58,450 --> 00:09:04,510
we have an admin access and we have configured our user with putting the access key and secure access

125
00:09:04,510 --> 00:09:04,990
key.

126
00:09:05,680 --> 00:09:07,900
Let me come back in here.

127
00:09:07,930 --> 00:09:08,470
Yes.

128
00:09:08,470 --> 00:09:16,930
Now, after we have configured our user in the account, we can see your settings with this command.

129
00:09:17,200 --> 00:09:19,210
Let me open the.

130
00:09:20,230 --> 00:09:24,100
Yes, this is a configured list.

131
00:09:24,100 --> 00:09:28,750
So if you hit the enter, you will see the configured user.

132
00:09:28,750 --> 00:09:36,730
So as you can see that I have a default profile and this is the access key and security access key information.

133
00:09:36,760 --> 00:09:42,820
This is the end of the characters and it is saving in shared credentials file and my region is us.

134
00:09:42,820 --> 00:09:44,080
This is data.

135
00:09:44,110 --> 00:09:45,190
This is very important.

136
00:09:45,190 --> 00:09:53,200
Please really be careful about that because when we are interacting our resources with this user using

137
00:09:53,200 --> 00:10:00,700
the SLA command, this will be create or update delete manage any resource into the the region of the

138
00:10:00,700 --> 00:10:06,820
US is etc. So I chose the US is two and I am going to follow the rest of the course.

139
00:10:07,010 --> 00:10:16,080
With this region and you make sure that your region is yes is true, or you can make sure that the major

140
00:10:16,170 --> 00:10:18,200
console region will be the same one.

141
00:10:18,200 --> 00:10:19,330
We will check twice.

142
00:10:19,340 --> 00:10:22,160
So let me check in here.

143
00:10:22,160 --> 00:10:27,440
I'm going to sign up and log in with my IM user.

144
00:10:28,900 --> 00:10:30,220
Which will be the.

145
00:10:36,020 --> 00:10:36,950
Okay.

146
00:10:37,220 --> 00:10:39,020
I'm going to look in with I am user.

147
00:10:42,750 --> 00:10:46,020
So now, yes, this is the wrong creation.

148
00:10:46,020 --> 00:10:46,410
Right.

149
00:10:46,410 --> 00:10:48,030
I would like to change this.

150
00:10:48,030 --> 00:10:57,450
US is because the a management console and a CLI should be the same region and that in that way I can

151
00:10:57,450 --> 00:11:01,290
see the same interactions in the resources.

152
00:11:01,290 --> 00:11:07,110
So that means if I am creating a new lambda function, I can retrieve the lambda functions in here or

153
00:11:07,110 --> 00:11:11,850
I am creating or managing any dynamo db api gateway from the CLI.

154
00:11:11,880 --> 00:11:15,810
I can see the interactions from the management console.

155
00:11:15,840 --> 00:11:24,540
Make sure that your configured SLA account region and your console region is the same.

156
00:11:24,570 --> 00:11:26,670
Okay, now we are ready.

157
00:11:27,930 --> 00:11:34,260
And also after this setting the complications, it is very easy to change this profile and credentials

158
00:11:34,260 --> 00:11:39,360
with creating new profile or updating existing credentials with using the alias.

159
00:11:39,390 --> 00:11:46,050
Configure set command can use a configure set command in order to set any value.

160
00:11:46,080 --> 00:11:51,750
If you click the set command, you can see options how we can set our operations.

161
00:11:52,080 --> 00:11:58,620
OC A has also extended information in the profile and credentials.

162
00:11:58,770 --> 00:12:00,840
Let me open this.

163
00:12:02,280 --> 00:12:03,810
Come or confiscation?

164
00:12:03,810 --> 00:12:04,340
Yes.

165
00:12:04,350 --> 00:12:09,660
You can follow the documentation and configure Sally.

166
00:12:10,790 --> 00:12:12,970
And there is some configuration basics.

167
00:12:12,980 --> 00:12:15,320
I have one link I would like to show in here.

168
00:12:15,350 --> 00:12:18,730
Most of it is yes, configuration and credential settings.

169
00:12:18,740 --> 00:12:27,710
You can follow this article, how to update the credentials in the settings file and how the managing

170
00:12:27,710 --> 00:12:30,560
ID is configuring your settings in here.

171
00:12:30,560 --> 00:12:38,390
For example, yes, we have some command a configure set re region and give us is too and profile is

172
00:12:38,390 --> 00:12:39,080
intact.

173
00:12:39,080 --> 00:12:44,990
So these kind of commands can be run with a CLI a configure set and get.

174
00:12:45,080 --> 00:12:48,290
I would like to show one command to be together.

175
00:12:48,290 --> 00:12:49,070
Let's see.

176
00:12:50,010 --> 00:12:52,490
It is configured.

177
00:12:53,950 --> 00:12:57,010
Least we already see that a table is configured.

178
00:12:57,010 --> 00:13:00,430
If you run the place configure get region.

179
00:13:01,360 --> 00:13:03,130
And give the profile.

180
00:13:04,210 --> 00:13:04,780
Default.

181
00:13:05,940 --> 00:13:08,760
You can see that our region is us, is too.

182
00:13:09,240 --> 00:13:13,920
And these kind of commands can be run on the sly.

183
00:13:13,920 --> 00:13:23,340
And at the same way we can set configure set region us is too and so on we can.

184
00:13:24,660 --> 00:13:29,010
On the same command with the subversion, with giving the regime volume.

185
00:13:29,040 --> 00:13:32,970
You understand what I am, meaning it is very useful.

186
00:13:32,970 --> 00:13:40,470
We have already configured ah a user in the CLI and we see some other commands which configure, set

187
00:13:40,470 --> 00:13:41,250
and get.

188
00:13:41,250 --> 00:13:44,910
And I will also share these articles individual resources.

189
00:13:44,910 --> 00:13:51,210
So that's not fond of as you can see that we have successfully installed and configured our a obviously

190
00:13:51,210 --> 00:13:56,550
and now we are ready for to interact with the resources from the our local computer with using data

191
00:13:56,550 --> 00:13:57,390
with SLA.

192
00:13:57,420 --> 00:14:00,300
Let's see next prerequisites for our project.
