LoginSignup
0
0

More than 3 years have passed since last update.

opsworksのcreate-deploymentでインスタンスを指定したくてハマった

Posted at

CircleCIでaws-sdk使って、Opsworksのデプロイをしていたときに、
ちょっとした事情でインスタンスを指定してデプロイをしたかったので、
どうやってやるのか公式ドキュメントを調べてたら

create-deployment
--stack-id <value>
[--app-id <value>]
[--instance-ids <value>]
[--layer-ids <value>]
--command <value>
[--comment <value>]
[--custom-json <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

The instance IDs for the deployment targets.
https://docs.aws.amazon.com/cli/latest/reference/opsworks/create-deployment.html

ふむふむ、 --instance-idsでEC2インスタンスのID(i-XXXXXXのやつ)を指定すればいいのかと思ったら違った。。。

この --instance-idsで指定するのはOpsWorks IDだった。

rails-app3_-_Instances_-_LIFELABEL-STG_–_AWS_OpsWorks.png

EC2 instance IDではないので注意

0
0
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
0