
1. How can users access AWS ?
- To access AWS, you have three options:
• AWS Management Console (protected by password + MFA)
• AWS Command Line Interface (CLI): protected by access keys
• AWS Software Developer Kit (SDK) - for code: protected by access keys
- Access Keys are generated through the AWS Console
- Users manage their own access keys
- Access Keys are secret, just like a password. Don’t share them
- Access Key ID ~= username
- Secret Access Key ~= password
2. How to get Access Keys for CLI
- AWS Management Console > Access keys > Create asccess key
• Access Key ID ~= username
• Secret Access Key ~= password
3. What's AWS CLI
- AWS CLI is a tool that enables you to interact with AWS services using commands your command-line shell.
- Direct access to the public APIs of AWS services
- You can develop scripts to manage your resources
- where to get its open-source https://github.com/aws/aws-cli
GitHub - aws/aws-cli: Universal Command Line Interface for Amazon Web Services
Universal Command Line Interface for Amazon Web Services - aws/aws-cli
github.com
- all the command lines starts aws
- Alternative to using AWS Management Console
4. What's AWS SDK?
- AWS Software Development Kit (AWS SDK)
- Programming Language-specific APIs (set of libraries)
- Enable you to access and manage AWS services programmatically
- Embedded within your application
- is in your application
- Supports Many different languages
• SDKs (JS, Python, PHP, .NET, Ruby, Java, Go, Node.js, C++)
• Mobile SDKs (Android, iOS, ...)
5. 윈도우와 맥에서 AWS CLI 설치하기
AWS CLI version 2 설치
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-version.html
Installing past releases of the AWS CLI version 2 - AWS Command Line Interface
(Optional) The following command block downloads and installs the AWS CLI without first verifying the integrity of your download. To verify the integrity of your download, use the below step by step instructions.
docs.aws.amazon.com

윈도우 기준 > Windows > .msi 다운로드
맥 기준 > macOS > .pkg 다운로드

Setup 파일 클릭해서 다운로드


설치완료했으면 cmd 열고 아래 명령어로 AWS CLI 가 잘 설치되었는지 확인
잘 설치되었으면 버전 정보가 뜬다.
aws --version

버전 업그레이드 방법
- 다시 msi / pkg 다운로드 링크 눌러서 재설치 하면 자동으로 업그레이드 됨.
6. 리눅스에서 AWS-CLI 설치하는 법
아래 세 가지 명령어를 순차적으로 입력해서 다운 받기
압축파일 다운 받고 압축파일 풀고, 관리자권한으로 AWS 다운
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
버전 업그레이드 방법
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
7. 실습
How to get AWS CLI Access key
IAM 유저로 로그인 > IAM DashBoard > Users > Click your name > Security credentials > Create access key >


Use case - Command Line Interface(CLI) 선택


Alternatives recommended 창이 뜨지만 이걸로 만들면 복잡하므로 그냥 CLI 용으로 생성해주도록 하겠음
description tag 는 선택사항이므로 Skip > Create access key

Download .csv file > Done

명령 프롬프트로 이동
aws configure
AWS Access Key ID 입력
AWS Secret Access Key 입력
Default region name 입력

Default output format 은 입력 안 해도 됨
아래 명령어 입력하면 JSON 형식으로 유저 정보 출력됨
이 권한은 AWS 관리 콘솔에서 주어진 권한과 같다.
aws iam list-users
{
"Users": [
{
"Path": "/",
"UserName": "AdminUser",
"UserId": "AIDAEXAMPLE12345",
"Arn": "arn:aws:iam::123456789012:user/AdminUser",
"CreateDate": "2023-01-15T08:45:23Z"
},
{
"Path": "/",
"UserName": "DeveloperUser",
"UserId": "AIDAEXAMPLE67890",
"Arn": "arn:aws:iam::123456789012:user/DeveloperUser",
"CreateDate": "2023-03-22T10:12:34Z"
}
]
}

이 명령어를 실행하려면 IAM 사용자 또는 역할에 iam:ListUsers 권한이 있어야 한다.
그렇지 않으면 "Access Denied" 오류가 발생함
8. CLI 대신 사용가능한 Cloud Shell
AWS CloudShell은 AWS 관리 콘솔에서 바로 사용할 수 있는 브라우저 기반 셸 환경(=터미널)이다.
AWS 리소스를 직접 관리하는 데 필요한 CLI(Command Line Interface) 도구들이 이미 설치되어 있어서
별도의 설치 없이 즉시 사용할 수 있다.
단, 모든 지역 에서 사용할 수 있는 것은 아님
지원되는 Region 목록은 아래 페이지에서 확인 가능
https://docs.aws.amazon.com/cloudshell/latest/userguide/supported-aws-regions.html
Supported AWS Regions for AWS CloudShell - AWS CloudShell
Supported AWS Regions for AWS CloudShell This section covers the list of supported AWS Regions and Opt-in Regions for AWS CloudShell. For a list of AWS service endpoints and quotas for CloudShell, see the AWS CloudShell page in the Amazon Web Services Gene
docs.aws.amazon.com
🥳 한국에서는 사용 가능
AWS 관리 콘솔에 로그인
콘솔 화면 우측 상단에 있는 CloudShell 아이콘 (작은 셸 모양 아이콘)을 클릭


8-1. Preferences 설정
우측 상단 설정(톱니바퀴 아이콘)에서 가능한 것 - Preferences 설정
- 폰트 사이즈
- 다크/라이트 모드
- 안전하게 붙여넣기


8-2. Download file 설정
Actions > Upload file, Download file 가능

파일다운로드 방법
pwd 로 현재 작업 경로 출력 후 복사

Action > Download file > 경로 붙여넣기 > 파일명 > Download


8-3. 한 화면에 터미널 분리해서 두 개 띄우기
Actions > New tab > Split into columns


'AWS' 카테고리의 다른 글
[AWS] 실습6일차 - AWS 예산 관리 Billing and Cost Managetment (setting Budget) (9) | 2025.01.22 |
---|---|
[AWS] 실습5일차 - IAM & IAM CLI 문제 / 정리 (21) | 2025.01.21 |
[AWS] 실습4일차 - AWS IAM ROLE, IAM 보안도구 등 (14) | 2025.01.20 |
[AWS] 실습2일차 - IAM: JSON 구조 & IAM MFA (다중인증) (4) | 2025.01.16 |
[AWS] 실습1일차 - IAM: Users & Groups (4) | 2025.01.15 |

1. How can users access AWS ?
- To access AWS, you have three options:
• AWS Management Console (protected by password + MFA)
• AWS Command Line Interface (CLI): protected by access keys
• AWS Software Developer Kit (SDK) - for code: protected by access keys
- Access Keys are generated through the AWS Console
- Users manage their own access keys
- Access Keys are secret, just like a password. Don’t share them
- Access Key ID ~= username
- Secret Access Key ~= password
2. How to get Access Keys for CLI
- AWS Management Console > Access keys > Create asccess key
• Access Key ID ~= username
• Secret Access Key ~= password
3. What's AWS CLI
- AWS CLI is a tool that enables you to interact with AWS services using commands your command-line shell.
- Direct access to the public APIs of AWS services
- You can develop scripts to manage your resources
- where to get its open-source https://github.com/aws/aws-cli
GitHub - aws/aws-cli: Universal Command Line Interface for Amazon Web Services
Universal Command Line Interface for Amazon Web Services - aws/aws-cli
github.com
- all the command lines starts aws
- Alternative to using AWS Management Console
4. What's AWS SDK?
- AWS Software Development Kit (AWS SDK)
- Programming Language-specific APIs (set of libraries)
- Enable you to access and manage AWS services programmatically
- Embedded within your application
- is in your application
- Supports Many different languages
• SDKs (JS, Python, PHP, .NET, Ruby, Java, Go, Node.js, C++)
• Mobile SDKs (Android, iOS, ...)
5. 윈도우와 맥에서 AWS CLI 설치하기
AWS CLI version 2 설치
https://docs.aws.amazon.com/cli/latest/userguide/getting-started-version.html
Installing past releases of the AWS CLI version 2 - AWS Command Line Interface
(Optional) The following command block downloads and installs the AWS CLI without first verifying the integrity of your download. To verify the integrity of your download, use the below step by step instructions.
docs.aws.amazon.com

윈도우 기준 > Windows > .msi 다운로드
맥 기준 > macOS > .pkg 다운로드

Setup 파일 클릭해서 다운로드


설치완료했으면 cmd 열고 아래 명령어로 AWS CLI 가 잘 설치되었는지 확인
잘 설치되었으면 버전 정보가 뜬다.
aws --version

버전 업그레이드 방법
- 다시 msi / pkg 다운로드 링크 눌러서 재설치 하면 자동으로 업그레이드 됨.
6. 리눅스에서 AWS-CLI 설치하는 법
아래 세 가지 명령어를 순차적으로 입력해서 다운 받기
압축파일 다운 받고 압축파일 풀고, 관리자권한으로 AWS 다운
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install
버전 업그레이드 방법
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.0.30.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update
7. 실습
How to get AWS CLI Access key
IAM 유저로 로그인 > IAM DashBoard > Users > Click your name > Security credentials > Create access key >


Use case - Command Line Interface(CLI) 선택


Alternatives recommended 창이 뜨지만 이걸로 만들면 복잡하므로 그냥 CLI 용으로 생성해주도록 하겠음
description tag 는 선택사항이므로 Skip > Create access key

Download .csv file > Done

명령 프롬프트로 이동
aws configure
AWS Access Key ID 입력
AWS Secret Access Key 입력
Default region name 입력

Default output format 은 입력 안 해도 됨
아래 명령어 입력하면 JSON 형식으로 유저 정보 출력됨
이 권한은 AWS 관리 콘솔에서 주어진 권한과 같다.
aws iam list-users
{ "Users": [ { "Path": "/", "UserName": "AdminUser", "UserId": "AIDAEXAMPLE12345", "Arn": "arn:aws:iam::123456789012:user/AdminUser", "CreateDate": "2023-01-15T08:45:23Z" }, { "Path": "/", "UserName": "DeveloperUser", "UserId": "AIDAEXAMPLE67890", "Arn": "arn:aws:iam::123456789012:user/DeveloperUser", "CreateDate": "2023-03-22T10:12:34Z" } ] }

이 명령어를 실행하려면 IAM 사용자 또는 역할에 iam:ListUsers 권한이 있어야 한다.
그렇지 않으면 "Access Denied" 오류가 발생함
8. CLI 대신 사용가능한 Cloud Shell
AWS CloudShell은 AWS 관리 콘솔에서 바로 사용할 수 있는 브라우저 기반 셸 환경(=터미널)이다.
AWS 리소스를 직접 관리하는 데 필요한 CLI(Command Line Interface) 도구들이 이미 설치되어 있어서
별도의 설치 없이 즉시 사용할 수 있다.
단, 모든 지역 에서 사용할 수 있는 것은 아님
지원되는 Region 목록은 아래 페이지에서 확인 가능
https://docs.aws.amazon.com/cloudshell/latest/userguide/supported-aws-regions.html
Supported AWS Regions for AWS CloudShell - AWS CloudShell
Supported AWS Regions for AWS CloudShell This section covers the list of supported AWS Regions and Opt-in Regions for AWS CloudShell. For a list of AWS service endpoints and quotas for CloudShell, see the AWS CloudShell page in the Amazon Web Services Gene
docs.aws.amazon.com
🥳 한국에서는 사용 가능
AWS 관리 콘솔에 로그인
콘솔 화면 우측 상단에 있는 CloudShell 아이콘 (작은 셸 모양 아이콘)을 클릭


8-1. Preferences 설정
우측 상단 설정(톱니바퀴 아이콘)에서 가능한 것 - Preferences 설정
- 폰트 사이즈
- 다크/라이트 모드
- 안전하게 붙여넣기


8-2. Download file 설정
Actions > Upload file, Download file 가능

파일다운로드 방법
pwd 로 현재 작업 경로 출력 후 복사

Action > Download file > 경로 붙여넣기 > 파일명 > Download


8-3. 한 화면에 터미널 분리해서 두 개 띄우기
Actions > New tab > Split into columns


'AWS' 카테고리의 다른 글
[AWS] 실습6일차 - AWS 예산 관리 Billing and Cost Managetment (setting Budget) (9) | 2025.01.22 |
---|---|
[AWS] 실습5일차 - IAM & IAM CLI 문제 / 정리 (21) | 2025.01.21 |
[AWS] 실습4일차 - AWS IAM ROLE, IAM 보안도구 등 (14) | 2025.01.20 |
[AWS] 실습2일차 - IAM: JSON 구조 & IAM MFA (다중인증) (4) | 2025.01.16 |
[AWS] 실습1일차 - IAM: Users & Groups (4) | 2025.01.15 |