LoginSignup
9
9

More than 5 years have passed since last update.

AWS CodeDeployでコマンドラインでGitHubからデプロイする方法

Posted at

CLIの準備や、アプリケーションの作成などの全手順はこちらを参照

コマンド

S3経由の場合と違うのは、--s3-locationの引数ではなく、--github-locationを使う点となる。ここでレポジトリとコミットIDを指定すればOK

aws deploy create-deployment \
--github-location repository=ryuzee/codedeploy_sample,commitId=3ca071bfa2a0fc57d8b3491e12852e6a6e9cad0e \
--application-name sampleapp1 \
--deployment-group-name deploygroup1 \
--region us-west-2

以下のように表示されればOK


{
    "deploymentId": "d-UNFPQIZ9Z"
}
9
9
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
9
9