Dockerを使えばレジストリを変えずに済む
- コマンドプロンプト
>doskey aws=docker run --rm -it -v %userprofile%/.aws:/root/.aws amazon/aws-cli $*
>aws configure
AWS Access Key ID [****************DD7A]:
AWS Secret Access Key [****************IiOW]:
Default region name [us-east-1]:
Default output format [json]:
- Gitbash
$ alias aws='MSYS_NO_PATHCONV=1 docker run --rm -it -v $HOME/.aws:/root/.aws amazon/aws-cli'
$ aws configure
AWS Access Key ID [****************DD7A]:
AWS Secret Access Key [****************IiOW]:
Default region name [us-east-1]:
Default output format [json]:
- WSL
$ alias aws='docker run --rm -it -v $HOME/.aws:/root/.aws amazon/aws-cli'
$ aws configure
AWS Access Key ID [****************DD7A]:
AWS Secret Access Key [****************IiOW]:
Default region name [us-east-1]:
Default output format [json]:
参考