본문 바로가기
CLOUD/AWS

ECS CLI 설치(windows)

by Rainbound-IT 2022. 5. 2.
반응형
ecs-cli --version

1. powershell 관리자권한으로 실행

 

2. 아래명령어로 다운

New-Item -Path 'C:\Program Files\Amazon\ECSCLI' -ItemType Directory
Invoke-WebRequest -OutFile 'C:\Program Files\Amazon\ECSCLI\ecs-cli.exe' https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe

 

3. GnuPG 웹 사이트에서 Windows Simple Installer를 다운로드하고 관리자로 설치합니다. GnuPG를 설치한 후 Administrator PowerShell을 닫았다가 다시 엽니다.

바로 다운로드

https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.3.6_20220425.exe

다운로드 페이지

https://www.gnupg.org/download/index.html

 

4. 텍스트파일 생성

public_key_filename.txt

 

5. 텍스트 파일에 아래 내용 추가하고 저장

 

더보기

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQINBFq1SasBEADliGcT1NVJ1ydfN8DqebYYe9ne3dt6jqKFmKowLmm6LLGJe7HU
jGtqhCWRDkN+qPpHqdArRgDZAtn2pXY5fEipHgar4CP8QgRnRMO2fl74lmavr4Vg
7K/KH8VHlq2uRw32/B94XLEgRbGTMdWFdKuxoPCttBQaMj3LGn6Pe+6xVWRkChQu
BoQAhjBQ+bEm0kNy0LjNgjNlnL3UMAG56t8E3LANIgGgEnpNsB1UwfWluPoGZoTx
N+6pHBJrKIL/1v/ETU4FXpYw2zvhWNahxeNRnoYj3uycHkeliCrw4kj0+skizBgO
2K7oVX8Oc3j5+ZilhL/qDLXmUCb2az5cMM1mOoF8EKX5HaNuq1KfwJxqXE6NNIcO
lFTrT7QwD5fMNld3FanLgv/ZnIrsSaqJOL6zRSq8O4LN1OWBVbndExk2Kr+5kFxn
5lBPgfPgRj5hQ+KTHMa9Y8Z7yUc64BJiN6F9Nl7FJuSsfqbdkvRLsQRbcBG9qxX3
rJAEhieJzVMEUNl+EgeCkxj5xuSkNU7zw2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bxKHKB7SDbVeav+K5g==
=Gi5D
-----END PGP PUBLIC KEY BLOCK-----

 

6. 터미널에서 다음 명령을 사용하여 Amazon ECS PGP 퍼블릭 키로 파일을 가져옵니다.(텍스트 파일이 있는곳에 해야하는것은 당연하겟죠?)

gpg --import public_key_filename.txt

 

 

 

7. Amazon ECS CLI 서명을 다운로드합니다. 서명은 .asc 확장자 파일에 저장된 ASCII 분리 PGP 서명입니다. 서명 파일은 해당 실행 파일과 동일한 이름에 .asc가 추가되어 있습니다.

Invoke-WebRequest -OutFile ecs-cli.asc https://amazon-ecs-cli.s3.amazonaws.com/ecs-cli-windows-amd64-latest.exe.asc

 

 

8. 확인해봅니다.

gpg --verify ecs-cli.asc 'C:\Program Files\Amazon\ECSCLI\ecs-cli.exe'

대략적으로 위처럼 나와야 합니다.

 

9. 바이너리에 실행권한 적용

아래 명령어 입력후 shell 재실행합니다.

setx path "%path%;C:\Program Files\Amazon\ECSCLI"

 

10. 설치완료

아래 명령어를 입력하면

ecs-cli --version

이렇게 나옵니다.

반응형

'CLOUD > AWS' 카테고리의 다른 글

ec2 중지중 오류 해결  (0) 2022.05.04
ec2 유형 변경  (0) 2022.05.04
aws copilot 설치(windows powershell)  (0) 2022.05.02
ECS 네트워크모드  (0) 2022.05.02
AWS opensearch 도메인 처리중에서 멈추는경우  (0) 2022.05.02

댓글