LoginSignup
0
1

More than 1 year has passed since last update.

#docker で #AWS コマンドを実行する ( AWS CLI を使いたい )

Last updated at Posted at 2019-10-14

xueshanf/awscli

https://github.com/xueshanf/docker-awscli
https://hub.docker.com/r/xueshanf/awscli

  • DockerhubでのDL数 10M超え
  • bashが使える ( つまり wait-for-it.sh も使える )
$ docker run xueshanf/awscli 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: too few arguments

mesosphere/aws-cli

  • DockerhubでのDL数 10M超え
  • bashが使えず sh しか使えない ( つまり wait-for-it.sh が使えない )
  • docker aws cli でGoogle検索したら1位で出てきた
  • あんまメンテされてなさそう
  • entrypoint が aws コマンドなので aws って打たずに使える
$ docker run mesosphere/aws-cli
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: too few arguments

localstack

https://github.com/localstack/localstack
https://hub.docker.com/r/localstack/localstack/

  • AWSサーバーをlocalに構築するためのもので、awsコマンド実行用というわけではない
  • 管理されてそうで安心感がある (たぶん)
  • AWSサーバー起動用のイメージだが aws コマンドも実行できる
  • エントリーポイントが AWS サーバー起動なので、これを実行しないようにして aws コマンドを使う必要がある
$ docker run --entrypoint= localstack/localstack 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: too few arguments

ちなみに wait-for-it.sh とは

dockerおすすめスクリプト。
portを通して 他のコンテナの起動を待ったりできるっぽい。
最低限 bash が必要。

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1