# 将 API 定义部署到 AWS API Gateway

使用 API 契约公开 API 自动将您的 API 更新至 AWS API Gateway。

本示例介绍如何从 API 契约向 AWS API Gateway 导入新的 API 定义或更新现有定义。

![CI/CD 管道从 Qlik Talend Cloud 获取 API 定义然后推送到 AWS API Gateway 的过程示意图。](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Resources/Images/ApiDesigner/amazon_api_gateway_6.png)

为此，您必须先从 Qlik Talend Cloud 获取您的 API，然后需要使用命令行脚本或 CI/CD 管道将其部署到 AWS API Gateway。

以下步骤使用 AWS CLI，但您也可以使用 AWS API Gateway REST API。

有关详细信息，请参阅以下资源：

* [正在获取 AWS API Gateway 的 API 定义](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/APIDesigner/FetchingApiDefinitionForAwsApiGateway.htm)
* [AWS Command Line Interface 用户指南](https://docs.aws.amazon.com/cli/latest/userguide/index.html)
* [AWS API Gateway 开发人员指南](https://docs.aws.amazon.com/en_en/apigateway/latest/developerguide/index.html)
* [AWS API Gateway REST API 参考](https://docs.aws.amazon.com/apigateway/api-reference/)