AWS Access Keys, CLI, and SDK

AWS Access Keys, CLI, and SDK

In this article, I am going to discuss AWS Access Keys, CLI, and SDK. Please read our previous article where we discussed IAM MFA Hands-On in AWS.

AWS Access Keys, CLI, and SDK

We have seen how to access AWS using the Management console, which is the Web interface that we have done but there are three different options to access AWS. The first one is a management console, as we have seen, and is protected by your username, password, or maybe multifactor authentication. There is the CLI, Command Line Interface, and this is something we will set up on our computer, and this is protected by access keys, and access keys our credentials we are going to download in a few seconds that will allow us to access AWS from our terminal. Then, finally, there is the SDK, the AWS Software Development Kit, which is used whenever you want to call APIs from AWS from within your application code. Again, these will be protected by the exact same access keys.

How do we generate access keys?

We will do this through the Management console, and users are responsible for their own access keys, and access keys, from the user perspective, there are secret, just like a password, if you generate your own access keys do not share them with your colleagues, because they can generate their own access keys as well. really make sure that you treat your access key ID just like your username, and your secret access key just like your password, you do not share them with other people.

AWS Access Keys, CLI, and SDK

When you go into the Management console, you get the access key as there is a button to create access keys, and then it gives you the right to download it in the very second. For example, here is a fake access key ID and a fake secret access key, and these, when loaded into my Command Line Interface, would allow me to access the AWS API, and we will do this in the hands-on in a second. So again, remember, I want to make sure that you do not have any security issues while doing this course or at work, do not share your access keys, they are private to you.

What is AWS CLI?

If you are new to the Cloud, and programming, and so on, or IT, then you might not know what a CLI is.

AWS Access Keys, CLI, and SDK

CLI stands for Command Line Interface, and the AWS CLI is a tool that allows you to interact with the AWS services using commands from your command-line shell. Whenever you see some code where you type a command line, and then it returns a result, for example, AWS, s3, cp, and so on, this is what we call the CLI. We are using the AWS CLI because we start every command with the word AWS. Now with this CLI, you get direct access to the public APIs of your AWS services which is going to be very helpful in this course. And, then, using the CLI you can develop scripts to manage your resources and automate some of your tasks. The CLI is open-Source; you can find all the source code on GitHub, it is an alternative to using the AWS Management console. I know that some people, actually, do not even use the Management Console, they only use the CLI, for example.

AWS Access Keys, CLI, and SDK

What is AWS SDK?

SDK stands for Software Development Kit, and this is a set of libraries, this is going to be language specific, you’re going to have an SDK for different programming languages, and similarly, it will allow you to access and manage your AWS services and APIs programmatically, but this time the SDK is not something that you use within your terminal, it is something that you embed within your application that you have to code. Your application will have the AWS SDK from within them. It supports many different programming languages, such as JavaScript, Python, PHP.NET, Ruby, Java, Go, Node.js, and C++, all of that is our programming languages. There is also the mobile SDK if you are using Android or IOS, and the IoT, so Internet of Things device SDK in case you are using some thermal sensors or backlogs that are connected, all these kinds of things. To give you an example of what you can build with the SDK, well the AWS CLI that we are going to be using in this course is actually built on the AWS SDK for Python named BOTO.

In the next article, I am going to discuss AWS CLI Setup on Windows. Here, in this article, I try to explain AWS Access Keys, CLI, and SDK and I hope you enjoy this AWS Access Keys, CLI, and SDK article.

Leave a Reply

Your email address will not be published. Required fields are marked *