DEV Community

KenjiGoh
KenjiGoh

Posted on

Using AWS-CLI & AWS CloudShell

1. AWS-CLI

Installation

Following this official guide: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

Example, for windows, we can install via this command on command prompt:



msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi


Enter fullscreen mode Exit fullscreen mode

Check for success installation:



aws --version

aws-cli/2.15.17 Python/3.11.6 Windows/10 exe/AMD64 prompt/off

Enter fullscreen mode Exit fullscreen mode




Configure

Example, on VS Code local:
Image description

Usage

Check for iam users.



aws iam list-users

Enter fullscreen mode Exit fullscreen mode



  1. AWS CloudShell

  • An alternative to AWS-CLI will be using AWS CloudShell directly.
  • AWS CloudShell is a browser-based shell that gives you command-line access to your AWS resources in the selected AWS region.
  • AWS CloudShell comes pre-installed with popular tools for resource management and creation.
  • You have the same credentials as you used to log in to the console.

Are available only in Supported Regions.

Image description

Image description

Image description

Usage

Create and download a file from CloudShell.

Image description

Use pwd to get the path of your created file in the CloudShell.

Image description

Image description

Cheers!

Top comments (0)