

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 設定代理程式
<a name="configuring-agent"></a>

 安裝代理程式後，您必須在 更新代理程式組態檔案`/opt/aws/groundstation/etc/aws-gs-agent-config.json`。

## 代理程式組態檔案
<a name="agent-config-file"></a>

### 範例
<a name="agent-config-file-example"></a>

```
{
  "capabilities": [
    "arn:aws:groundstation:eu-central-1:123456789012:dataflow-endpoint-group/bb6c19ea-1517-47d3-99fa-3760f078f100"
  ],
  "device": {
  "privateIps": [
    "127.0.0.1"
  ],
  "publicIps": [
    "1.2.3.4"
  ],
  "agentCpuCores": [ 24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92 ]
}
```

### 欄位明細
<a name="field-breakdown"></a>

#### capabilities
<a name="capabilities"></a>

功能指定為 Dataflow 端點群組 Amazon 資源名稱。

**必要**：是

**格式：**字串陣列
+ 值：功能 ARNs → 字串

範例：

```
"capabilities": [
    "arn:aws:groundstation:${AWS::Region}:${AWS::AccountId}:dataflow-endpoint-group/${DataflowEndpointGroupId}"
]
```

#### device
<a name="device"></a>

此欄位包含列舉目前 EC2「裝置」所需的其他欄位。

**必要**：是

**格式：**物件

成員：
+ privateIps
+ publicIps
+ agentCpuCores
+ networkAdapters

#### privateIps
<a name="private-ips"></a>

此欄位目前並未使用，但會納入未來的使用案例。如果未包含任何值，則會預設為 【「127.0.0.1」】

**必要**：False

**格式：**字串陣列
+ 值：IP 地址 → 字串

範例：

```
"privateIps": [
    "127.0.0.1"
],
```

#### publicIps
<a name="public-ips"></a>

每個資料流程端點群組的彈性 IP (EIP)。

**必要**：是

**格式：**字串陣列
+ 值：IP 地址 → 字串

範例：

```
"publicIps": [
    "9.8.7.6"
],
```

#### agentCPUCores
<a name="agent-cpu-cores"></a>

這會指定要保留給 aws-gs-agent 程序的虛擬核心。如需適當設定此值的需求，[CPU 核心規劃](agent-instance-selection.md#cpu-core-planning)請參閱 。

**必要**：是

**格式：**Int Array
+ 值：核心數字 → int 

範例：

```
"agentCpuCores": [
    24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92
]
```

#### networkAdapters
<a name="network-adapters"></a>

這相當於將接收資料的乙太網路轉接器或連接到 ENIs介面。

**必要**：False

**格式：**字串陣列
+ 值：乙太網路轉接器名稱 （可以透過執行 找到它們`ifconfig`) 

範例：

```
"networkAdapters": [
    "eth0"
]
```