A channel collects and archives raw, unprocessed message data before publishing this data to a pipeline. Next we will create the IoT Analytics channel that will consume data from the IoT Core broker and store the data into your S3 bucket.
Navigate to the AWS IoT Analytics console.
In the left navigation pane, navigate to Channels
Create a new channel
<yourname>_streamchannel. Click Next<yourname>-iot-analytics-role. This will give IoT Analytics the correct IAM policies to access your S3 bucket.

Click ‘Next’ and input the following. This step will create an IoT Rule that consumes data on the specified topic.
smarthome/house1/energy/appliances<yourname>-iot-core-analytics-role. This will give IoT Analytics the correct IAM policies to access your AWS IoT Core topic.Click Next, and then click Create Channel