All Products
Search
Document Center

Energy Expert:Service-linked role for cloud product carbon footprint

Last Updated:Oct 09, 2024

This topic describes the use scenario of the service-linked role for cloud product carbon footprint and how to delete the service-linked role.

Background information

Energy Expert allows you to subscribe to cloud product carbon footprint statistics in CSV files. The AliyunServiceRoleForCpcfpAccessingOSS service-linked role is a Resource Access Management (RAM) role that is used by Energy Expert to upload the CSV files to the specified Object Storage Service (OSS) bucket.

Description of the AliyunServiceRoleForCpcfpAccessingOSS service-linked role

Role name: AliyunServiceRoleForCpcfpAccessingOSS

Policy: AliyunServiceRolePolicyForCpcfpAccessingOSS

Description: To use this role, you must first manually create an OSS bucket whose name starts with carbonfootprint to store uploaded files.

{
    "Version": "1",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "oss:PutObject",
                "oss:GetBucketInfo"
            ],
            "Resource": [
                "acs:oss:*:*:carbonfootprint*/*",
                "acs:oss:*:*:carbonfootprint*"
            ]
        },
        {
            "Action": "ram:DeleteServiceLinkedRole",
            "Resource": "*",
            "Effect": "Allow",
            "Condition": {
                "StringEquals": {
                    "ram:ServiceName": "cpcfp-oss.carbon.aliyuncs.com"
                }
            }
        }
    ]
}

Delete the service-linked role

If you no longer need the AliyunServiceRoleForCpcfpAccessingOSS service-linked role, you can delete the role on the Roles page of the RAM console.