# AWS

SpotMax SaaS后台会读取用户云商资源并分析使用情况，以提供有效的优化建议，因此需要用户本身有读取或操作相关资源产品的权限。

## 权限操作

权限设置操作需要登录到AWS控制台进行设置，步骤如下

* 登录AWS控制台—>Identity and Access Management (IAM)
* 新建自定义策略：MyCostExplorerReadOnlyAcces&#x73;**（此步骤会获取账单信息，如不需要展示请忽略）**

![](/files/-McshKVyPLkHsepj9mKR)

![](/files/-McshVMti17bnB95ANI6)

![](/files/-McshbD6Xxw3Ca9KMGwt)

![](/files/-McshfGqEhlbKlBv-CQW)

* 为用户/角色授权：AmazonEC2ReadOnlyAccess、IAMReadOnlyAccess、MyCostExplorerReadOnlyAccess

![](/files/5jBtVg7LUcZM6ExeGGhD)

## **权限升级**

使用SpotMax SaaS提供的资源使用分析和一键优化的功能，则需要添加以下权限

| 权限名称                               | 权限说明                         |
| ---------------------------------- | ---------------------------- |
| **AmazonEC2FullAccess**            | 管理云服务器服务(EC2)的权限             |
| IAMReadOnlyAccess                  | 只读访问身份和访问管理服务(IAM)的权限        |
| ***MyCostExplorerReadOnlyAccess*** | 只读访问成本管理器服务(CostExplorer)的权限 |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.spotmaxtech.com/maxbook/saas-gong-neng-jie-shao/quan-xian-guan-li/aws.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
