7) AWS Access Keys, CLI and SDK- AWS Certified Solutions Architect Associate Course SAA-C02

BySai Charan Paloju

Aug 7, 2022 #access aws, #access aws account from cli, #access aws cli, #access aws console, #access aws elasticsearch from outside, #access aws msk rom local machine, #access aws rds from local machine, #access aws s3 bucket, #access aws s3 bucket with access key, #access aws secrets manager from java, #access aws secrets manager from lambda python, #aws access, #aws access advisor, #aws access analyzer, #aws access key, #aws access key environment variable, #aws access key for s3 bucket, #aws access key id, #aws access key id for cli, #AWS Access Keys, #AWS Access Keys and password policies, #AWS Access Keys best practices, #AWS Access Keys environment variables, #AWS Access Keys explained, #aws access keys for cli sdk and api access, #AWS Access Keys for federated users, #AWS Access Keys for roles, #AWS Access Keys in acm, #AWS Access Keys mfa, #AWS Access Keys rotation, #AWS Access Keys vs key pairs, #aws access logs, #aws access management, #aws access management - hands - on, #aws cli, #aws cli commands, #aws cli commands for s3, #aws cli configure, #aws cli download, #aws cli install, #aws cli install mac, #aws cli install windows version 2, #aws cli install wondows, #aws cli version, #aws cli version 2, #AWS IAM, #aws iam authenticato, #AWS IAM authenticator, #AWS IAM commands, #AWS IAM documentation, #AWS IAM interview questions, #AWS IAM login, #AWS IAM policy, #AWS IAM policy generator, #AWS IAM roles, #AWS IAM tutorial, #aws iam user, #aws iam user access analyzer, #aws sdk documentaion, #aws sdk download, #aws sdk for java, #aws sdk full form, #aws sdk go, #aws sdk node js, #aws sdk npm, #aws sdk puthon, #aws sdk v3, #aws user access, #aws user access key, #aws user access key and secret key, #aws user access key rotation, #aws user access logs, #aws user access management, #aws user access only one bucket, #aws user access report, #aws user access review, #aws user access type, #CLI, #CLI and SDK, #cli angular, #CLI commands, #cli download, #CLI full form, #cli full form in computer, #cli in aws, #cli in azure, #cli init is not a function, #cli is based on, #CLI meaning, #how to get aws cli access key, #how to get your aws access key, #sai charan paloju, #sdk, #sdk download, #sdk features, #sdk full form, #sdk full form in android, #sdk in android, #sdk manager, #sdk means, #sdk platform tools, #sdk stands for, #sdk tools, #smart cherrys tech, #smart cherrys thoughts

7) AWS Access Keys, CLI and SDK- AWS Certified Solutions Architect Associate Course SAA-C02- Section 1-IAM & AWS CLI- So we have seen how to access AWS using the Management console, Which is the web interface that we’ve done so far in this course, but there are, actually three different options to access AWS.

How Can Users Can Access AWS- 

  • So the first one is a Management console,
  • as we’ve seen, and is protected by your username,
  • password, maybe multifactor authentication.
  • Then 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’re 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.
  • And again, these will be protected
  • by the exact same access keys.
  • so how do we generate access keys?
  • Well we will do this through the Management Console.
  • and users are responsible for their own access keys,
  • and access keys, from the user perspective,
  • they are secret, just like a password.
  • so if you generate your own access keys
  • do not share them with your colleagues,
  • because they can generate their own access keys as well.
  • So really make sure that you treat your access key ID
  • Just like a username
  • and your secret access key just like your password,
  • you do not share them with other people.

Example (Fake) Access Keys

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

What’s THE AWS CLI ?

  • So if you’re new to the Cloud, and programming and so on,
  • or IT, then you might not know what’s a CLI.
  • So 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.
  • So 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.
  • and we are using the AWS CLI
  • because we start every command by word AWS.
  • now with this CLI, you get direct access
  • to the 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- https://github.com/aws/aws-cli
  • and 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.

What’s The AWS SDK ?

  • So what’s the SDK now?
  • SDK stands for Software Development Kit,
  • and this is a set of library,
  • this is going to be language specific.
  • so 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 API’S 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.
  • So 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, C++,
  • all of that’s our programming languages.
  • There’s also the mobile SDK,
  • if you’re using Android or iOS,
  • and the IoT, so Internet of things devices SDK.
  • in case you’re using some thermal sensors.
  • or backlogs that are connected, all these kinds of things.
  • So to give you an example of what you can build
  • with SDK, well the AWS CLI that we’re going to be using
  • in this course is actually built
  • on the AWS SDK for Python names Boto.
  • So that’s it for this lecture.
  • Now in then the next lecture, we’re going to practice
  • setting up CLI dealing with access keys,
  • so i will see you in the next lecture.

 

By Sai Charan Paloju

Trained AWS Certified Solutions Architect Associate Course SAA-C02/Content Writer/Creator, Masters Degree- Software Engineering, Bachelors Degree- Computer Science & Engineering, Youtuber- Host/Interviewer/Content Creator/Video Editor, Podcaster- Host/Interviewer/Content Creator/Editor, Technical Writer, Social Media Manager/Influencer Ex-Professional Cricketer mailme@smartcherrysthoughts.com https://smartcherrysthoughts.com/

2 thoughts on “7) AWS Access Keys, CLI and SDK- AWS Certified Solutions Architect Associate Course SAA-C02”

Leave a Reply

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