Allowing DWS to Manage Resources
As Huawei Cloud services interwork with each other, some O&M operations require coordination with other cloud services. To allow DWS to perform resource O&M tasks on your behalf, create an agency that grants the required permissions to DWS.
Application Scenarios
- Log collection: DWS obtains the write permission of LTS through an agency to report run logs to LTS.
- Audit log dump: DWS obtains the OBS management permissions through an agency to store audit logs to OBS buckets.
- KMS-encrypted cluster: DWS obtains the KMS management permissions through an agency to query and rotate KMS keys.
- Automatic node fault recovery: When a node is faulty, DWS obtains VPC management permissions through an agency to migrate the EIP from the faulty node to a normal node. It also obtains the ELB management permissions through the agency to add and delete listeners.
- Elastic scaling of a storage-compute decoupled cluster: An agency provides the Tenant Administrator permissions of DWS that allows periodic scale-out or scale-in of a read-only virtual warehouse based on an automatic addition and deletion plan.
Notes and Constraints
- We are currently optimizing DWS agency permissions. Previously, agencies relied on IAM permissions. Now, they are being migrated to a new system. To switch to the new, lower-permission agency for better resource protection, contact O&M personnel.
- By default, only Huawei Cloud accounts or users with Security Administrator permissions can query and create agencies. By default, IAM users of an account do not have permissions to query or create agencies. If you lack the permissions to query agencies or perform operations on agencies, contact an authorized user to grant DWS the required permissions on the current page.
- Agency permissions are obtained from the cache, which is updated once an hour. If you update an agency, the update will take effect one hour later.
DWS Agency Permissions (New)
The following table lists the optimized agency and its permission, based on the APIs on which the agency operations depend.
| Agency | Agency Permission | Scenario |
|---|---|---|
| DWSAgencyAccess | DWS Agency Access | Minimum permissions on which DWS depends when using the agency function. For example, LTS depends only on lts:groups:put, and the system policy has only the operation permission on LTS. |
You can log in to the IAM management console, choose Permissions > Policies/Roles, and click the DWS Agency Access permission to view the complete dependency information.
DWS Agency Permissions (Old)
The following table describes the dependency scenarios of the old agency permissions.
| Agency | Agency Permission | Scenario |
|---|---|---|
| DWSAccessLTS | LTS FullAccess | LTS collects and reports logs to LTS. |
| DWSAccessOBS | OBS Administrator | Audit log dump: reports audit logs to OBS buckets. |
| DWSAccessKMS | KMS Administrator | Used to query and rotate keys in a KMS encrypted cluster. |
| DWSAccessVPC | Server Administrator | If a node is faulty, the EIP is automatically migrated from the faulty node to a normal node. |
| DWSAccessDWS | Tenant Administrator |
|
Creating a DWS Agency
- Log in to the DWS console.
- Click your account in the upper right corner of the page and choose Identity and Access Management.
- In the navigation pane on the left, choose Agencies.
- Click Create Agency in the upper right corner and set the following parameters:
- Agency Name: Enter a name for the agency, for example, DWSAgencyAccess.
- Agency Type: Select Cloud service.
- Cloud Service: Select Data Warehouse Service (DWS).
- Validity Period: Select a validity period for the agency. The default value is Unlimited.
- Click OK. In the displayed dialog box, click Authorize.
- On the displayed Authorize Agency page, select DWS Agency Access.
- Click Next. Select All resources or specific resources for Scope, confirm the information, and click OK.
- Check for the agency on the Agencies page. If the agency status is Normal, the agency is successfully created. The agency permissions take effect within one hour. To check whether the permissions have taken effect, perform an operation that depends on the agency (for example, collecting LTS logs).
Documentation
- Introduction to IAM: Identity and Access Management
- Creating an agency: Creating an Agency and Assigning Permissions
- Granting DWS permissions using IAM: Using IAM to Grant Access to DWS
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot