Service-linked role for device file uploads
Updated at:
This topic describes the AliyunServiceRoleForIoTDeviceFileUpload service-linked role for device file uploads in IoT Platform and explains how to delete this role.
Background information
For more information about how to configure device file uploads, see Configure file uploads.Role description
IoT Platform provides a file upload feature that enables devices to upload files to an OSS bucket that you specify. To use this feature, IoT Platform requires access permissions to your OSS resources. When you enable this feature, the system automatically creates the required RAM role, which is the AliyunServiceRoleForIoTDeviceFileUpload service-linked role for device file uploads in IoT Platform.
- Role name:
AliyunServiceRoleForIoTDeviceFileUpload. - Role access policy:
AliyunServiceRolePolicyForIoTDeviceFileUpload. - Policy content:
Note For more information about the elements of an access policy, see Basic elements of an access policy.
{ "Version": "1", "Statement": [ { "Action": "oss:GetBucketInfo", "Resource": "acs:oss:*:*:*", "Effect": "Allow" }, { "Action": "oss:GetObject", "Resource": "acs:oss:*:*:*/aliyun-iot-device-file/*", "Effect": "Allow" }, { "Action": "oss:DeleteObject", "Resource": "acs:oss:*:*:*/aliyun-iot-device-file/*", "Effect": "Allow" }, { "Action": [ "oss:PutObject", "oss:PutObjectTagging" ], "Resource": "acs:oss:*:*:*/aliyun-iot-device-file/*", "Effect": "Allow" }, { "Action": "ram:DeleteServiceLinkedRole", "Resource": "*", "Effect": "Allow", "Condition": { "StringEquals": { "ram:ServiceName": "device-file-upload.iot.aliyuncs.com" } } } ] }
Delete the role
If you no longer need to save device files to your OSS bucket, you can delete the AliyunServiceRoleForIoTDeviceFileUpload service-linked role.
- Modify the file upload logic on the device to stop uploading files to your OSS bucket.
- In the IoT Platform console, delete the bucket authorization configuration.
- On the Product Details page, click the Upload File Configuration tab and find the target bucket configuration.
- In the Actions column of the target OSS bucket, click Delete.
- In the dialog box that appears, confirm the bucket information and click Confirm.
- In the Resource Access Management (RAM) console, delete the AliyunServiceRoleForIoTDeviceFileUpload service-linked role. For more information, see Delete a service-linked role.
Is this page helpful?