Details
-
Type:
Task
-
Status: Done
-
Priority:
(None)
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Create and Delete Devices in AWS IoT Core
-
Sprint:MEN Sprint 168
-
Story Points:13
-
Epic Link:
-
Backlog:yes
-
Days in progress:9
Description
This task is about implement the lifecycle management:
- Once a device is 1) Preauthorized or 2) go from Pending -> Accepted in Mender, a "Thing" is Created in AWS IoT Core with a generated and signed certificate.
- If Configure add-on is available, a configuration deployment with the certificate and private key is created
- If the device is Decommissioned in Mender, the Thing and Certificate is removed from AWS
- If the device is Rejected in Mender, the access policy associated with the certificate gets revoked.
Acceptance criteria:
- Update the following endpoints to satisfy the above requirements:
- POST /api/internal/v1/iot-manager/tenants/{tenantId}/devices
- Provision device
- Configuration deployment:
- Certificate
- Certificate private key
- Endpoint URL
- DELETE /api/internal/v1/iot-manager/tenants/{tenantId}/devices/{deviceId}
- Decommission device
- PUT /tenants/{tenantId}/bulk/devices/status/{status}
- Device status change
- POST /api/internal/v1/iot-manager/tenants/{tenantId}/devices
Attachments
Release management
Issue Links
- blocks
-
MEN-5452 [iot-manager] Integration tests for device lifecycle
-
- Done
-
-
MEN-5454 [docs] User guide for integrating Mender with AWS IoT
-
- Done
-
-
MEN-5455 [docs] High level description and overview of AWS IoT Integration
-
- Done
-
- is blocked by
-
MEN-5447 [iot-manager] Add support for AWS integration type
-
- Done
-