自动 Guard 部署
部署亚马逊销售合作伙伴 API Guard。
使用以下步骤在 AWS 上部署销售伙伴 API Guard。在启动销售伙伴 API Guard 之前,请查看费用、架构概述、安全,以及本指南中讨论的其他注意事项。
部署时间:大约 25 分钟
先决条件
-
登录 解决方案提供商门户 使用您的开发者证书。
注意
对于 卖家中心 用户,登录卖家平台并导航至 Apps and Services,然后 Develop Apps。
-
登录您的 AWS 账户。
-
确定要测试销售伙伴 API Guard 的 AWS 分区。销售伙伴 API Guard 支持 AWS 和 AWS-CN。
-
为报告和通知选择有效的电子邮件地址。
步骤 1. 启动堆栈
此自动化 AWS CloudFormation 模板在 AWS 云端部署销售伙伴 API Guard。在启动堆栈之前,您必须完成先决条件。
注意
运行销售伙伴 API Guard 时使用的 AWS 服务的费用由您承担。有关详细信息,请访问本指南中的“费用”部分,并参阅每项 AWS 服务的定价网页。
<<<<<<< HEAD
-
登录 解决方案提供商门户 使用您的开发者证书。
-
登录到卖家平台。
-
From the top-left menu, choose Apps and Services.
-
选择 Develop Apps。
-
Select the *Selling Partner API Guard** link.
-
Choose Get Started to launch the
CloudFormation
template in the AWS Console. -
查看以下模板参数并根据需要对其进行修改。
mainline
> 📘 Note > > For **Seller Central** users, sign in to Seller Central and navigate to <span class="notranslate">**Apps and Services**</span>, then <span class="notranslate">[**Develop Apps**](https://sellercentral.amazon.com/sellingpartner/developerconsole)</span>.
-
Select the *Selling Partner API Guard** link.
-
Choose Get Started to launch the
CloudFormation
template in the AWS Console. -
查看以下模板参数并根据需要对其进行修改。
参数 默认 描述 Stack name
Selling-Partner-API-Guard-Stack
与关联的堆栈名称 CloudFormation
堆栈。此字段无法更改。Developer email
<需要输入> 用于接收与销售伙伴 API Guard 设置相关的电子邮件和所生成报告的电子邮件地址。 Merchant token
<需要输入> Unique merchant token for a Seller Central account. This value can be fetched from the Merchant Token information on the Seller Central Account Info page. -
On the Review page, review and confirm the settings.
-
Select the box acknowledging that AWS CloudFormation might create IAM resources.
-
Choose Create stack to deploy the stack.
您可以在 AWS 中查看堆栈的状态 CloudFormation
控制台在 “状态” 列中。
步骤 2. 完成销售伙伴 API Guard EC2 CLI 设置
小心
您将收到两封电子邮件,其中包含来自销售伙伴 API Guard 的通信。您可以通过将电子邮件中的 AWS 账户 ID 与正在执行安装的 AWS 账户的账户 ID 进行匹配来验证电子邮件的真实性。
After the AWS CloudFormation stack deploys, you will receive an email prompting you to confirm your subscription to Selling Partner API Guard. This email should arrive within 10 minutes.
-
打开第一个通过电子邮件发送的链接以确认您的订阅。
After confirming your subscription, you will receive a second email with a link that automates the provision of the Amazon EC2 CLI, which is an endpoint for running Selling Partner API Guard commands. This email should arrive within 15 minutes.
-
打开第二个通过电子邮件发送的链接以启动会话管理器。
-
运行以下命令导航到该目录:
cd GuardCli/ -
运行以下命令以启用 AWS 安全服务:
sudo ./guardcli enable_services -
Choose Yes or No to enable the following Scan Rules:
- 扫描您的 S3 存储桶中是否有未加密的 PII 数据 (Amazon Macie)
- 扫描您的 AWS 账户中是否存在可能的恶意活动和 DPP 要求 (Amazon GuardDuty)
- 扫描您的 AWS 账户中与外部实体共享的 IAM 职权,以了解这些职权是否适用 (IAM Access Analyzer)
- 扫描 EC2 实例,查找意外网络漏洞 (Amazon Inspector)
注意
销售伙伴 API Guard 不会修改您之前的配置。
步骤 3. 调用销售伙伴 API Guard 并生成安全报告
-
运行以下命令调用 Lambda 处理程序来完成扫描:
sudo ./guardcli start_scan -
Choose Yes to share report findings with Amazon. This option allows the Selling Partner API team to receive the same report that you receive. Alternatively, you can use the following command to share findings with Amazon within 30 days of the scan.
sudo ./guardcli report_to_amazon -
A report is generated after 24 hours. The report is emailed to the email provided in the stack parameters and is stored in the Amazon S3 bucket created by the AWS CloudFormation stack.
销售伙伴 API Guard 会自动禁用扫描中触发的 AWS 安全服务。它还会在 30 天后自动删除 Amazon EC2 实例和 VPC。您可以选择在收到报告后立即删除这些资源。有关详细信息,请参阅本指南的卸载亚马逊销售伙伴 API Guard 部分。
Updated 23 days ago