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

2. 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!

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay