https://aws.amazon.com/ko/cli/
windows 64비트 설치
설치 후 터미널 재실행
C:\Users\user>aws
↓
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: command
> aws configure --profile 계정명
> AWS Access Key ID [None]:
> AWS Secret Access Key ID [None]:
> Default region name [None]: s3가 있는 리전의 이름(서울, ap-northeast-2)
> Default output format [None]: json
> npm run build> aws s3 sync ./build s3:// (업로드 할 버킷의 이름) --profile= (사용장 계정명)package.json -> "scripts" : 긴 단어를 하나로 표현할 수 있음
"scripts": {
...,
"deploy" : 위 명령어 입력
}
> npm run build
> npm run deploy