Creating an IAM Agency
To use some OBS features, such as cross-region replicationlogging, you need to use IAM agencies to grant required permissions to OBS for processing your data.
Creating an Agency for Cross-Region Replication
- In the Create Cross-Region Replication Rule dialog box on OBS Console, click View IAM agencies to jump to the Agencies page on the Identity and Access Management console.
- Click Create Agency to create an agency.
- Enter an agency name.
- Select Cloud service for the Agency Type.
- Select Object Storage Service (OBS) as the cloud service.
- Set a validity period.
- Click Next.
- In the Scope area, select Global service project.
- In the Permissions area, search for and select OBS Administrator and click OK.
- (Optional) If Replicate KMS encrypted objects is selected, the IAM agency also needs the KMS Administrator permissions in the regions where the source and destination buckets reside.
- Go to the Agencies page on the Identity and Access Management console and click the name of the agency created in the previous step.
- On the Agency Permissions tab page, click Assign Permissions.
- In the Scope area, select Region-specific projects and select the projects in the regions where the source and destination buckets reside.
- In the Permissions area, search for and select KMS Administrator, and click OK.
Creating an Agency for Uploading Logs
- In the Logging dialog box, click Create Agency to jump to the Agencies page on the Identity and Access Management console.
- Click Create Agency to create an agency.
- Enter an agency name.
- Select Cloud service for the Agency Type.
- Select Object Storage Service (OBS) as the cloud service.
- Set a validity period.
- Click Next.
- In the Scope area, select Global service project.
- In the Permissions area, search for and select the custom policy that has the permission to upload logs to the bucket, and click OK.
If no custom policy is available, create one by referring to Creating a Custom Policy.
When creating a custom policy, select Global services for Scope and select JSON for Policy View. The policy content is as follows.
When coding the policy content in an actual scenario, replace mybucketlogs with the actual bucket name:
{ "Version": "1.1", "Statement": [ { "Action": [ "obs:object:PutObject" ], "Resource": [ "OBS:*:*:object:mybucketlogs/*" ], "Effect": "Allow" } ] } - (Optional) If the default encryption is enabled for the log storing bucket, the IAM agency also requires the KMS Administrator permission in the region where the log storing bucket resides.
- Go to the Agencies page on the Identity and Access Management console and click the name of the agency created in the previous step.
- On the Agency Permissions tab page, click Assign Permissions.
- In the Scope area, select Region-specific projects and select the projects in the region where the log bucket resides.
- In the Permissions area, search for and select KMS Administrator, and click OK.
Last Article: Related Operations
Next Article: Troubleshooting
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.