官术网_书友最值得收藏!

  • Learning AWS IoT
  • Agus Kurniawan
  • 304字
  • 2021-06-30 19:26:05

Configuring security access for AWS IoT

Since AWS IoT applies security to protect its system, we should also comply to configure our AWS IoT security. Some steps are taken to configure our AWS IoT security. We will perform the following tasks:

  1. Create a policy
  2. Attach a policy to the IoT device certificate
  3. Attach the IoT thing to the certificate

To create a policy on AWS IoT, perform the following steps:

  1. Click the Policies sub-menu from the Secure menu, as shown in the following screenshot:
  1. Then, you should see a Create a policy button. Click on this button.
  2. Fill in your policy name. You should add three policy statements, as follows:
    • iot:Connect
    • iot:Subscribe
    • iot:Publish
  1. Don't forget to check the Allow checkbox for all the preceding policy statements:
  1. When done, save your AWS IoT policy. You should see your created policy on the Policies form, as shown in the following screenshot:
  1. The next step is to add our created policy into the IoT device certificate. You can open Secure | Certificates on AWS IoT Management Console. Click on the ellipsis () link so you get a context menu that is shown in the following screenshot. Click on the Attach policy option:
  1. Then, you get a dialog box. Select your created policy. When done, click on the Attach button to execute this task:
  1. The last step is to add our IoT device into a security certificate. Click on the ellipsis () on your certificate so you get a context menu. Select the Attach thing option on context menu:
  1. Select your IoT device and then click on the Attach button to perform this task:

Now your IoT device has a certificate and policy. You can access AWS IoT through the IoT device.

主站蜘蛛池模板: 宜兰市| 盐源县| 彩票| 伽师县| 澎湖县| 清水县| 西宁市| 南召县| 明光市| 绥宁县| 修文县| 中宁县| 横峰县| 子长县| 金平| 乐平市| 保定市| 东辽县| 金寨县| 南雄市| 清丰县| 青铜峡市| 桐庐县| 阆中市| 加查县| 隆尧县| 年辖:市辖区| 涪陵区| 龙海市| 甘南县| 阿合奇县| 澄城县| 南通市| 枣庄市| 麻阳| 鹤岗市| 临漳县| 荥阳市| 天长市| 梧州市| 灵璧县|