

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# deploy 属性
<a name="attributes-json-deploy"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

属性が [Deploy イベント](workingcookbook-events.md)または [Execute Recipes スタックコマンド](workingstacks-commands.md)に関連付けられている場合、`deploy` 属性には、デプロイされた各アプリケーションの属性が含まれます (アプリケーションの短縮名から名前が付けられます)。各アプリケーション属性には、次の属性が含まれます。


****  

|  |  |  | 
| --- |--- |--- |
| [アプリケーション](#attributes-json-deploy-app-app) | [application\$1type](#attributes-json-deploy-app-type) | [auto\$1bundle\$1on\$1deploy](#attributes-json-deploy-app-auto) | 
| [データベース](#attributes-json-deploy-app-db) | [deploy\$1to](#attributes-json-deploy-app-deploy-to) | [domains](#attributes-json-deploy-app-domains) | 
| [document\$1root](#attributes-json-deploy-app-root) | [environment\$1variables](#attributes-json-deploy-app-environment) | [グループ](#attributes-json-deploy-app-group) | 
| [keep\$1releases](#attributes-json-deploy-app-keep-releases) | [memcached](#attributes-json-deploy-app-memcached) | [移行](#attributes-json-deploy-app-migrate) | 
| [mounted\$1at](#attributes-json-deploy-app-mounted) | [purge\$1before\$1symlink](#attributes-json-deploy-app-purge-before-symlink) | [rails\$1env](#attributes-json-deploy-app-ssl-rails) | 
| [restart\$1command](#attributes-json-deploy-app-restart) | [scm](#attributes-json-deploy-app-scm) | [ssl\$1certificate](#attributes-json-deploy-app-ssl-cert) | 
| [ssl\$1certificate\$1ca](#attributes-json-deploy-app-ssl-ca) | [ssl\$1certificate\$1key](#attributes-json-deploy-app-ssl-key) | [ssl\$1support](#attributes-json-deploy-app-ssl-supp) | 
| [スタック](#attributes-json-deploy-app-stack) | [symlink\$1before\$1migrate](#attributes-json-deploy-app-symlink-migrate) | [symlinks](#attributes-json-deploy-app-symlinks) | 
| [ユーザー](#attributes-json-deploy-app-user) |  |  | 

**アプリケーション**  <a name="attributes-json-deploy-app-app"></a>
アプリケーションのスラグ名 (`"simplephp"` など) (文字列)。  

```
node["deploy"]["appshortname"]["application"]
```

**application\$1type**  <a name="attributes-json-deploy-app-type"></a>
アプリケーションタイプ (文字列)。可能な値は以下のとおりです。  
+ `java`: Java アプリケーション
+ `nodejs`: Node.js アプリケーション
+ `php`: PHP アプリケーション
+ `rails`: Ruby on Rails アプリケーション
+ `web`: 静的な HTML ページ
+ `other`: その他のすべてのアプリケーションタイプ

```
node["deploy"]["appshortname"]["application_type"]
```

**auto\$1bundle\$1on\$1deploy**  <a name="attributes-json-deploy-app-auto"></a>
Rails アプリケーションで、デプロイメント中に Bundler を実行するかどうか (ブール)。  

```
node["deploy"]["appshortname"]["auto_bundle_on_deploy"]
```

**データベース**  <a name="attributes-json-deploy-app-db"></a>
アプリケーションのデータベースを接続するために必要な情報を含みます。アプリにデータベースレイヤーがアタッチされている場合、 OpsWorks Stacks はこれらの属性に適切な値を自動的に割り当てます。    
**アダプター**  
データベースアダプタ (`mysql` など) (文字列)。  

```
node["deploy"]["appshortname"]["database"]["adapter"]
```  
**データベース**  <a name="attributes-json-deploy-app-db-db"></a>
データベース名 (文字列)。通常は `"simplephp"` のようなアプリケーションのスラグ名です。  

```
node["deploy"]["appshortname"]["database"]["database"]
```  
**data\$1source\$1provider**  
データソース (`mysql` または `rds`) (文字列)。  

```
node["deploy"]["appshortname"]["database"]["data_source_provider"]
```  
**ホスト**  <a name="attributes-json-deploy-app-db-host"></a>
データベースホストの IP アドレス (文字列)。  

```
node["deploy"]["appshortname"]["database"]["host"]
```  
**password**  <a name="attributes-json-deploy-app-db-pwd"></a>
データベースのパスワード (文字列)。  

```
node["deploy"]["appshortname"]["database"]["password"]
```  
**port**  
データベースポート (数値)。  

```
node["deploy"]["appshortname"]["database"]["port"]
```  
**reconnect**  <a name="attributes-json-deploy-app-db-reconnect"></a>
Rails アプリケーションで、接続が存在しなくなった場合にアプリケーションを再接続するかどうか (ブール)。  

```
node["deploy"]["appshortname"]["database"]["reconnect"]
```  
**username**  <a name="attributes-json-deploy-app-db-user"></a>
ユーザー名 (文字列)。  

```
node["deploy"]["appshortname"]["database"]["username"]
```

**deploy\$1to**  <a name="attributes-json-deploy-app-deploy-to"></a>
アプリケーションがデプロイされる場所 (文字列)。`"/srv/www/simplephp"`など。  

```
node["deploy"]["appshortname"]["deploy_to"]
```

**domains**  <a name="attributes-json-deploy-app-domains"></a>
アプリケーションのドメインのリスト (文字列のリスト)。  

```
node["deploy"]["appshortname"]["domains"]
```

**document\$1root**  <a name="attributes-json-deploy-app-root"></a>
デフォルト以外のルートを指定する場合はドキュメントのルート、デフォルトルートを使用する場合は null (文字列)。  

```
node["deploy"]["appshortname"]["document_root"]
```

**environment\$1variables**  <a name="attributes-json-deploy-app-environment"></a>
アプリケーションに対して定義されたユーザー指定の環境変数を表す最大 20 個の属性の集合です。アプリケーション環境変数の定義方法の詳細については、「[アプリケーションの追加](workingapps-creating.md)」を参照してください。各属性名が環境変数名に設定され、対応する値が変数の値に設定されます。したがって以下の構文を使用して特定の値を参照できます。  

```
node["deploy"]["appshortname"]["environment_variables"]["variable_name"]
```

**グループ**  <a name="attributes-json-deploy-app-group"></a>
アプリケーションのグループ (文字列)。  

```
node["deploy"]["appshortname"]["group"]
```

**keep\$1releases**  <a name="attributes-json-deploy-app-keep-releases"></a>
 OpsWorks スタックが保存するアプリケーションデプロイの数 (数値）。この属性は、アプリケーションをロールバックできる回数を制御します。デフォルトでは、グローバル値の [deploy\$1keep\$1releases ](attributes-recipes-deploy.md#attributes-recipes-deploy-global-keep-releases) に設定されます。このデフォルト値は 5 です。`keep_releases` を上書きして、特定のアプリケーションの保存したデプロイメントの数を指定することができます。  

```
node["deploy"]["appshortname"]["keep_releases"]
```

**memcached**  <a name="attributes-json-deploy-app-memcached"></a>
memcached 設定を定義する 2 つの属性が含まれます。    
**ホスト**  <a name="attributes-json-deploy-app-memcached-host"></a>
Memcached サーバーインスタンスの IP アドレス (文字列)。  

```
node["deploy"]["appshortname"]["memcached"]["host"]
```  
**port**  <a name="attributes-json-deploy-app-memcached-port"></a>
memcached サーバーがリッスンするポート (数値)。  

```
node["deploy"]["appshortname"]["memcached"]["port"]
```

**移行**  <a name="attributes-json-deploy-app-migrate"></a>
Rails アプリケーションで、移行を実行するかどうか (ブール)。  

```
node["deploy"]["appshortname"]["migrate"]
```

**mounted\$1at**  <a name="attributes-json-deploy-app-mounted"></a>
デフォルト以外のマウントポイントを指定する場合はアプリケーションのマウントポイント、デフォルトのマウントポイントを使用する場合は null です (文字列)。  

```
node["deploy"]["appshortname"]["mounted_at"]
```

**purge\$1before\$1symlink**  <a name="attributes-json-deploy-app-purge-before-symlink"></a>
Rails アプリケーションでは、シンボリックリンク（文字列のリスト）を作成する前に消去されるパスの配列。  

```
node["deploy"]["appshortname"]["purge_before_symlink"]
```

**rails\$1env**  <a name="attributes-json-deploy-app-ssl-rails"></a>
Rails アプリケーションサーバー インスタンスでは、`"production"` (文字列)などの rails 環境です。  

```
node["deploy"]["appshortname"]["rails_env"]
```

**restart\$1command**  <a name="attributes-json-deploy-app-restart"></a>
アプリケーションが再開されたときに実行されるコマンド (`"echo 'restarting app'"` など)。  

```
node["deploy"]["appshortname"]["restart_command"]
```

**scm**  <a name="attributes-json-deploy-app-scm"></a>
ソース管理リポジトリからアプリケーションをデプロイするために OpsWorks で使用される情報を指定する属性のセットが含まれます。この属性はリポジトリのタイプによって異なります。    
**password**  <a name="attributes-json-deploy-app-scm-pwd"></a>
プライベートリポジトリの場合はパスワード、パブリックリポジトリの場合は null (文字列)。プライベート Amazon S3 バケットでは、この属性はシークレットキーに設定されます。  

```
node["deploy"]["appshortname"]["scm"]["password"]
```  
**リポジトリ**  <a name="attributes-json-deploy-app-scm-repo"></a>
リポジトリの URL (`"git://github.com/amazonwebservices/opsworks-demo-php-simple-app.git"` など) (文字列)。  

```
node["deploy"]["appshortname"]["scm"]["repository"]
```  
**revision**  <a name="attributes-json-deploy-app-scm-revision"></a>
リポジトリに複数のブランチがある場合、その属性はアプリケーションのブランチまたはバージョンを指定します (`"version1"` など) (文字列)。それ以外の場合は、null に設定されます。  

```
node["deploy"]["appshortname"]["scm"]["revision"]
```  
**scm\$1type**  <a name="attributes-json-deploy-app-scm-type"></a>
リポジトリのタイプ (文字列)。可能な値は以下のとおりです。  
+ `"git"`: Git リポジトリ
+ `"svn"`: Subversion リポジトリ
+ `"s3"`: Amazon S3 バケット
+ `"archive"`: HTTP アーカイブ
+ `"other"`: 別のリポジトリのタイプ

```
node["deploy"]["appshortname"]["scm"]["scm_type"]
```  
**ssh\$1key**  <a name="attributes-json-deploy-app-scm-key"></a>
プライベート Git リポジトリにアクセスする場合は[デプロイ SSH キー](workingapps-deploykeys.md)、パブリックリポジトリの場合は null（文字列）。  

```
node["deploy"]["appshortname"]["scm"]["ssh_key"]
```  
**ユーザー**  <a name="attributes-json-deploy-app-scm-user"></a>
プライベートリポジトリの場合はユーザー名、パブリックリポジトリの場合は null（文字列）。プライベート Amazon S3 バケットでは、この属性はアクセスキーに設定されます。  

```
node["deploy"]["appshortname"]["scm"]["user"]
```

**ssl\$1certificate**  <a name="attributes-json-deploy-app-ssl-cert"></a>
SSL サポートを有効にした場合は SSL 証明書、それ以外の場合は null (文字列)。  

```
node["deploy"]["appshortname"]["ssl_certificate"]
```

**ssl\$1certificate\$1ca**  <a name="attributes-json-deploy-app-ssl-ca"></a>
SSL が有効である場合は、中間認証局キーまたはクライアント認証を指定するための属性 (文字列)。  

```
node["deploy"]["appshortname"]["ssl_certificate_ca"]
```

**ssl\$1certificate\$1key**  <a name="attributes-json-deploy-app-ssl-key"></a>
SSL サポートを有効にした場合はアプリケーションの SSL プライベートキー、それ以外の場合は null (文字列)。  

```
node["deploy"]["appshortname"]["ssl_certificate_key"]
```

**ssl\$1support**  <a name="attributes-json-deploy-app-ssl-supp"></a>
SSL がサポートされているかどうか (ブール)。  

```
node["deploy"]["appshortname"]["ssl_support"]
```

**スタック**  <a name="attributes-json-deploy-app-stack"></a>
デプロイメント中にアプリケーションサーバーを再読み込みするかどうかを指定するブール属性 `needs_reload` が含まれます。  

```
node["deploy"]["appshortname"]["stack"]["needs_reload"]
```

**symlink\$1before\$1migrate**  <a name="attributes-json-deploy-app-symlink-migrate"></a>
Rails アプリケーションでは、移行を実行する前に作成されるシンボリックリンクが `"link":"target"` ペアとして含まれます。  

```
node["deploy"]["appshortname"]["symlink_before_migrate"]
```

**symlinks**  <a name="attributes-json-deploy-app-symlinks"></a>
デプロイメントのシンボリックリンクが `"link":"target"` ペアとして含まれます。  

```
node["deploy"]["appshortname"]["symlinks"]
```

**ユーザー**  <a name="attributes-json-deploy-app-user"></a>
アプリケーションのユーザー (文字列)。  

```
node["deploy"]["appshortname"]["user"]
```