AWS Powershell Tool 사용법
AWS Powershell Tool 사용법
- PowerShell용 AWS 도구를 사용하면 개발자 및 관리자가 PowerShell 스크립팅 환경에서 AWS 서비스와 리소스를 관리할 수 있습니다.
- 기존에 Powershell 사용을 하였다면 AWS에서도 쉽게 적용 할 수 있습니다.
- AWS Access Key, Secret Key 가 필요하니 보안에 유의해 주세요.
1.Powershell AWS Tools 다운로드
https://aws.amazon.com/ko/powershell/
2.Powershell AWS Module 설치
PS C:\WINDOWS\system32> Install-Module -Name AWSPowerShell
3.AWS 모듈 Import
PS C:\WINDOWS\system32> Import-Module AWSPowerShell
4.AWS 모듈 설치 확인
PS C:\WINDOWS\system32> Get-Module -ListAvailable
ModuleType Version Name ExportedCommands
------------------------------------------------------------------------------------------------
Binary 3.3.365.0 AWSPowerShell {Clear-AWSHistory, Set-AWSHistoryConfiguration, Initialize-AWSDe...
5.AWS Access Key, Secret Key 입력
https://docs.aws.amazon.com/ko_kr/powershell/latest/userguide/pstools-appendix-sign-up.html (키 생성 방법)
키 저장
Set-AWSCredentials –AccessKey key_name –SecretKey key_name
6.리전선택
Set-DefaultAWSRegion -Region ap-northeast-2
7.사용할수있는 문서 나열
Get-SSMDocumentList