LoginSignup
0
0

More than 5 years have passed since last update.

AWS OpsWorksで特定のLayerだけ別ブランチからソースを取得する方法

Last updated at Posted at 2017-10-12

概要

AWS OpsWorksの場合custom Chef cookbooksの設定がStackに入ってるLayerすべてに同じ設定が適用される。
検証などで特定のレイヤーだけ別のブランチを使いたい場合はLayerのCustom JSONに設定を書くことで別ブランチを使うことができる。

別ブランチのcustom Chef cookbooksを使う方法

スクリーンショット 2017-10-11 23.06.15.png

General SettingsのCustom JSONに設定する。

{
  "opsworks_custom_cookbooks": {
    "scm": {
      "revision": "<branch name>"
    }
  }
}

Appで別ブランチのソースを取得するようにする方法

Appも同様に同じStackに入ってるLayerすべてで同じ設定が適用されるため、特定のLayerだけ別ブランチのソースを使いたい場合はLayerのGeneral SettingsのCustom JSONに設定する。

{
  "deploy": {
    "<app name>": {
      "scm": {
        "revision": "<branch name>"
      }
    }
  }
}
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