[Music]
a cloud support engineer here at da W
Sydney office today I'm going to show
you how to prepare your environment to
connect with Amazon DynamoDB using AWS
CLI the AWS CLI can be used in Windows
Linux and Mac I will show you the
easiest way to configure AWS CLI to
connect to it dynamodb I will use
instance I am role to access Amazon
DynamoDB let's get started
open IM console i'm searching it here
then choose role choose create new role
give it a name
I'm writing test KC select Amazon ec2
search for DynamoDB policy and then
select Amazon DynamoDB full access
choose next step and create role so a
test role has been created let's create
an ec2 instance and assign this role as
an instance role go to ec2 console
launch an instance select the Amazon
Linux AMI
I will select t2 micro choose configure
instance details in the I am role select
the role that you have created
I have created test KC and also keep in
mind to select the correct subnet
whether you have internet access choose
add a storage keep it as default choose
add tag now give it a name chose
configure security groups you can create
a new security group or choose an
existing one I will choose an existing
one that I have created earlier
just keep in mind to check whether it
has SSH access from your IP address
choose review and launch choose launch
select the correct key PR and then
launch the instance it might take some
time let's click on the instance name
here to see what's the status of this
instance as you can see this is still in
initializing state it's running right
now let's try to connect with that
instance using an SSH client click
connect
copy
the commands shown here
I need to change my change the
permission
so I'm connected with the ec2 instance
right now let's run yum update command
to check whether there is any pending
update for this instance so it is
downloading the latest packages
it might take some more time
so it's done let's configure the AWS CLI
so in amazon linux ami AWS CLI is
already pre-installed so i will
configure the AWS CLI in WS configure I
will not pass any excess key or secret
key because I'm using instance role to
connect with dynamo DB services I will
change the default role to AP southeast
to
I will leave the output format as
default so I have configured my CLI less
than a sample DynamoDB CLI command to
check whether it can connect with AP
southeast to end point so to list all
the tables in a particular region you
can run AWS DynamoDB least stable CLI
command as you can see it is returning
all the tables I have on the tree Gian
thanks for watching and happy cloud
computing from all of us here
[Music]
you
[Music]