AWS Fleet Hub

AWS Fleet Hub

AWS Fleet Hub is a service within Amazon Web Services that allows you to easily manage and monitor your fleet of IoT devices. With Fleet Hub, you can easily connect, monitor, and control your devices from a single, centralized location.

In this blog post, we will walk through the process of connecting an ESP32 microcontroller to AWS Fleet Hub for device monitoring.

Step 1: Create an AWS account

The first step in connecting your ESP32 to AWS Fleet Hub is to create an AWS account. If you already have an AWS account, you can skip this step.

To create an AWS account, go to the AWS website and click on the "Create a new AWS account" button. You will be prompted to enter your email address and create a password.

Step 2: Create a Thing in AWS IoT Core

Once you have an AWS account, you will need to create a Thing in AWS IoT Core. A Thing is a representation of a device in AWS IoT Core.

To create a Thing, log in to the AWS Management Console and navigate to the AWS IoT Core dashboard. From there, click on the "Things" menu and then click on the "Create" button.

Enter a name for your Thing and click on the "Create" button. Once your Thing is created, you will be given a unique Thing ARN (Amazon Resource Name) that you will use later in the process.

Step 3: Register your ESP32 with AWS IoT Core

Now that you have created a Thing in AWS IoT Core, you will need to register your ESP32 with the service. To do this, you will need to download and install the AWS IoT Device SDK for Arduino on your ESP32.

The AWS IoT Device SDK for Arduino is a collection of libraries and sample applications that make it easy to connect your ESP32 to AWS IoT Core. Once you have the SDK installed on your ESP32, you can use the sample applications to register your device with AWS IoT Core and start sending data to the service.

Step 4: Connect your ESP32 to AWS Fleet Hub

Once your ESP32 is registered with AWS IoT Core, you can connect it to AWS Fleet Hub. To do this, you will need to create a Fleet in Fleet Hub and add your ESP32 to the Fleet.

To create a Fleet, log in to the AWS Management Console and navigate to the AWS Fleet Hub dashboard. From there, click on the "Fleets" menu and then click on the "Create" button.

Enter a name for your Fleet and click on the "Create" button. Once your Fleet is created, you will be given a unique Fleet ARN (Amazon Resource Name) that you will use later in the process.

To add your ESP32 to the Fleet, navigate to the Fleet Hub dashboard and click on the "Devices" menu. From there, click on the "Add Device" button and enter the Thing ARN for your ESP32.

Step 5: Monitor your ESP32 with AWS Fleet Hub

Once your ESP32 is connected to AWS Fleet Hub, you can use the service to monitor the device. You can view the current status of the device, see historical data, and even control the device remotely.

To view the status of your ESP32, navigate to the Fleet Hub dashboard and click on the "Devices" menu. From there, you can view the current status of the device and see historical data.

You can also use Fleet Hub to control your ESP32 remotely. To do this, navigate to the Fleet Hub dashboard and click on the "Actions" menu. From there, you can control the device by sending commands to the ESP


1. Go to AWS IoT

2. Click on Settings

Step 2 screenshot

3. Click on Manage indexing

Step 3 screenshot

4. Check Activated

Step 4 screenshot

5. Check Add thing connectivity

Step 5 screenshot

6. Click on Update

Step 6 screenshot

7. Click on Fleet Hub

Step 7 screenshot

8. Click on Create application

Step 8 screenshot

9. Click on Next

Step 9 screenshot

10. Type "MeWater Application"

Step 10 screenshot

11. Type "Application for monitoring MEWater IoT devices"

Step 11 screenshot

12. Click on Create application

Step 12 screenshot

13. Click on https://***************.app.iotfleethub.aws

Step 13 screenshot

14. Click on Add IAM Identity Center user

Step 14 screenshot

15. Click on Create user

Step 15 screenshot

16. Type "[email@email.com]"

17. Type "[First Name]"

18. Type "[Last Name]"

Step 18 screenshot

19. Click on Create user

Step 19 screenshot

20. Check table

Step 20 screenshot

21. Click on Add selected users

Step 21 screenshot

22. Go to your mail inbox

23. Click on Invitation to join IAM Identity Center (successor to AWS Single Sign-On)

Step 23 screenshot

24. Click on image

Step 24 screenshot

25. Go to Amazon Web Services (AWS)

26. Type password

27. Type password

Step 27 screenshot

28. Click on Set new password

Step 28 screenshot

29. Go to Amazon Web Services (AWS)

30. Type password

Step 30 screenshot

31. Click on Sign in

Step 31 screenshot

32. Go to Amazon Web Services (AWS)

33. Click on MeWater Application

Step 33 screenshot

34. Go to IoT Fleet Hub

35. Click on Device list

Step 35 screenshot

36. Click on MeWater_IoT_device

Step 36 screenshot

37. Click on image

Step 37 screenshot

38. Click on Create alarm

Step 38 screenshot

39. Click on Device list

Step 39 screenshot

40. Click on highlight

Step 40 screenshot

41. Click on MeWater_IoT_device

Step 41 screenshot

42. You should see the Last connection state as 'true'

Step 42 screenshot

43. Click on Create alarm

Step 43 screenshot

44. Click on Choose field

Step 44 screenshot

45. Click on Choose aggregation type

Step 45 screenshot

46. Click on Choose period

Step 46 screenshot

47. Click on Next

Step 47 screenshot

48. Click on radiogroup

Step 48 screenshot

49. Select "LessThanThreshold"

Step 49 screenshot

50. Type "1"

Step 50 screenshot

51. Click on Next

Step 51 screenshot

52. Type "MeWater_email_list_name"

Step 52 screenshot

53. Type "[email]"

Step 53 screenshot

54. Type "MeWater_Alarm"

Step 54 screenshot

55. Type "Alarm for MeWater IoT devices"

Step 55 screenshot

56. Click on Submit

Step 56 screenshot

57. Click on table

Step 57 screenshot

58. Click on Notify…

Step 58 screenshot

59. Click on Fleet Hub alarms

Step 59 screenshot

60. Click on table

Step 60 screenshot

61. Go to IoT Fleet Hub

62. Click on image

Step 62 screenshot

63. Click on 1

Step 63 screenshot

64. Click on table

Step 64 screenshot

65. Click on table

Step 65 screenshot

66. Click on image

Step 66 screenshot

67. Click on table

Step 67 screenshot

68. Click on Summary

Step 68 screenshot

69. Refresh page

Step 69 screenshot

70. Click on image

Step 70 screenshot

71. Click on table

Step 71 screenshot

72. Check Show triggered alarms

Step 72 screenshot

73. Click on table

Step 73 screenshot

74. Click on table

Step 74 screenshot

75. Go to Invitation to join IAM Identity Center (successor to AWS Single Sign-On)

76. Click on Back to Inbox

Step 76 screenshot

77. Click on Inbox…

Step 77 screenshot

78. Click on AWS Notification - Subscription Confirmation

Step 78 screenshot

79. Click on image

Step 79 screenshot

80. Go to IoT Fleet Hub


1. Go to IoT Fleet Hub

2. Click on 1

Step 2 screenshot

3. Click on MeWater_IoT_device

Step 3 screenshot

4. Click on Devices

Step 4 screenshot

5. Click on highlight

Step 5 screenshot

6. Click on highlight

Step 6 screenshot

7. Click on table

Step 7 screenshot

8. Click on image

Step 8 screenshot

9. Click on MeWater_Alarm

Step 9 screenshot

10. Click on Fleet Hub alarms

Step 10 screenshot

11. Click on MeWater_Alarm

Step 11 screenshot

12. Click on In alarm

Step 12 screenshot

13. Click on table

Step 13 screenshot

14. Go to Inbox - Gmail

15. Click on Inbox…

Step 15 screenshot

16. Click on ALARM

Step 16 screenshot

17. You should be able to see the contents of the alarm

Step 17 screenshot

18. Go to IoT Fleet Hub

19. Click on Fleet Hub alarms

Step 19 screenshot

20. Uncheck Show triggered alarms

Step 20 screenshot

21. Click on image

Step 21 screenshot

22. Click on 1

Step 22 screenshot

23. Click on image

Step 23 screenshot

24. Click on Summary

Step 24 screenshot

25. Click on OK

Step 25 screenshot

26. Click on Alarms…

Step 26 screenshot

27. Click on table

Step 27 screenshot

28. Click on MeWater_Alarm…

Step 28 screenshot

29. Click on image

Step 29 screenshot

30. Click on Show triggered alarms…

Step 30 screenshot

31. Check Show triggered alarms

Step 31 screenshot