1.1.3.3. IoT Connect Gatewayの設定をする

各コマンドの実行については、rootユーザーに昇格して実行する前提で記載しています。
  1. 以下のコマンドを実行し、SIMグループを作成します。
    # cd /usr/local/sdpf/icgw
    # bash icgw-sim-group.sh
    
    201 Created
    
    {
        "id": "XXXXXXXXXXXXXXXXXXXXXXXX", ★「SIMのグループID」に該当。
        "name": "XXXXXXXXXX",
        "sims": [
            "XXXXXXXXXX"
        ]
    }
    
  2. 以下のコマンドを実行し、Wasabiの認証情報を登録します。
    # bash icgw-wasabi-register.sh
    
    201 Created
    
    {
        "description": "XXXXXXXXXX",
        "accessKeyId": "XXXXXXXXXX",
        "secretAccessKey": "XXXXXXXXXX",
        "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", ★「認証ID」に該当。
        "name": "XXXXXXXXXX",
        "type": "aws-credentials"
    }
    
  3. 手順1および手順2の実行結果内に記載されているID情報を「icgw-storage-setting.sh」内に反映後、以下のコマンドを実行し、ICGWのストレージ機能を設定します。
    # bash icgw-storage-setting.sh
    
    201 Created
    
    {
        "entrypoint": {
            "path": "/*",
            "priority": 100
        },
        "destination": {
            "serviceType": "aws-s3",
            "authenticationId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
            "endpoint": "s3.wasabisys.com",
            "bucket": "XXXXXXXXXX",
            "filePath": null
        },
        "metadata": {
            "appendImsi": false,
            "appendImei": false,
            "appendMsisdn": false,
            "appendDeviceName": false,
            "customMetadata": [],
            "customTags": []
        },
        "id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        "name": "XXXXXXXXXX",
        "enabled": true
    }