Create a self-hosted SiteWise Edge gateway
Use the AWS IoT SiteWise console or AWS CLI to create a self-hosted SiteWise Edge gateway. This procedure details how to create a self-hosted SiteWise Edge gateway that you'll install on your own hardware. For information about creating a SiteWise Edge gateway that runs on Siemens Industrial Edge, see Host a SiteWise Edge gateway on Siemens Industrial Edge.
Create a SiteWise Edge gateway
- Console
-
Navigate to the AWS IoT SiteWise console
. -
In the navigation pane, choose Edge gateways.
-
Choose Create gateway.
-
For Choose deployment target, choose self-hosted gateway.
-
Select either MQTT-enabled, V3 gateway or Classic streams, V2 gateway. For more information on each option, see Self-host an AWS IoT SiteWise Edge gateway with AWS IoT Greengrass V2. The MQTT-enabled, V3 gateway is recommend for it's future-ready features.
-
In the Gateway configuration section, enter a name for your SiteWise Edge gateway or use the name generated by AWS IoT SiteWise.
-
Under Greengrass device OS, select the operating system of the device where you'll install this SiteWise Edge gateway.
Note
The data processing pack is only available on x86 platforms. It is only available on the Classic streams, V2 gateway
-
(Optional) To process and organize data at the edge, under Edge capabilities, select Data Processing Pack.
Note
To grant user groups in your corporate directory access to this SiteWise Edge gateway, see Set up edge capability in SiteWise Edge
-
(Optional) Under advanced configuration, do the following:
-
For Greengrass core device, choose one of the following options:
-
Default setup – AWS automatically uses default settings to create a Greengrass core device in AWS IoT Greengrass V2.
-
Enter a name for the Greengrass core device or use the name generated by AWS IoT SiteWise.
-
-
Advanced setup – Choose this option if you want to use an existing Greengrass core device or to create one manually.
-
Choose a Greengrass core device or choose Create Greengrass core device to create one in the AWS IoT Greengrass V2 console. For more information, see Setting up AWS IoT Greengrass V2 core devices in the AWS IoT Greengrass Version 2 Developer Guide.
-
-
-
-
Choose Create gateway.
-
In the Generate SiteWise Edge gateway installer dialog box, choose Generate and download. AWS IoT SiteWise automatically generates an installer that you can use to configure your local device.
Important
You can't regenerate this file. Make sure that you save the installer file in a secure location because you'll use the file later.
- AWS CLI
-
To create a self-hosted gateway by using the AWS CLI, provide a name for the gateway, specify the platform, and the gateway version. There are many other options that you can specify when creating a gateway. For more information, see create-gateway in the AWS CLI Command Reference for AWS IoT SiteWise
To use this example, replace the user input placeholders with your own information.
aws iotsitewise create-gateway \ --gateway-name
your-gateway-name
\ --gateway-platform greengrassV2={coreDeviceThingName=your-core-device-thing-name
} \ --gateway-version3
[--cli-input-jsonyour-configuration
]-
gateway-name
– A unique name for the gateway. -
gateway-platform
– Specifies the gateway platform configuration. For self-hosted gateways, entergreengrassV2
. For more information, see Options in the create-gateway section of AWS CLI Command Reference for AWS IoT SiteWise. -
gateway-version
– The version of the gateway.-
To create an MQTT-enabled, V3 gateway, use
3
for the gateway version. -
To create a Classic streams, V2 gateway, use
2
for the gateway version.
-
-
cli-input-json
– A JSON file containing request parameters.
-
Now that you've created the SiteWise Edge gateway, Install the AWS IoT SiteWise Edge gateway software on your local device.