diff --git a/README.md b/README.md index 7dfc99aa..b103d182 100644 --- a/README.md +++ b/README.md @@ -92,16 +92,15 @@ this [example](https://github.com/awslabs/aws-lambda-web-adapter/tree/main/examp ### Step 2: Deploy stack and get your API URL -1. Click one of the following buttons to launch the CloudFormation Stack in the same region where your API Key was - created. +1. Go to [CloudFormation Console](https://console.aws.amazon.com/cloudformation/home#/stacks/create/template?stackName=SwiftChat) and select **Upload a template file** under **Specify template**, then use one of the following templates to deploy. (Make sure you are in the same region where your API Key was created.) - **App Runner** - [![Launch Stack](assets/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/create/template?stackName=SwiftChatAPI&templateURL=https://aws-gcr-solutions.s3.amazonaws.com/swift-chat/latest/SwiftChatAppRunner.template) + Open [SwiftChatAppRunner.template](https://github.com/aws-samples/swift-chat/blob/main/server/template/SwiftChatAppRunner.template), then download and upload the file. - **Lambda** (Note: For AWS customer use only) - [![Launch Stack](assets/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/create/template?stackName=SwiftChatLambda&templateURL=https://aws-gcr-solutions.s3.amazonaws.com/swift-chat/latest/SwiftChatLambda.template) + Open [SwiftChatLambda.template](https://github.com/aws-samples/swift-chat/blob/main/server/template/SwiftChatLambda.template) then download and upload the file. 2. Click **Next**, On the "Specify stack details" page, provide the following information: - Fill the `ApiKeyParam` with the parameter name you used for storing the API key (e.g., "SwiftChatAPIKey"). diff --git a/README_CN.md b/README_CN.md index 80871f16..8cb44d81 100644 --- a/README_CN.md +++ b/README_CN.md @@ -84,15 +84,15 @@ SwiftChat 是一款快速响应的 AI 聊天应用,采用 [React Native](https ### 步骤 2:部署堆栈并获取 API URL -1. 点击以下按钮之一在创建 API Key 的同一区域启动 CloudFormation 堆栈。 +1. 前往 [CloudFormation 控制台](https://console.aws.amazon.com/cloudformation/home#/stacks/create/template?stackName=SwiftChat),在**指定模板**下选择**上传模板文件**,然后使用以下模板之一进行部署。(确保您所在的区域与创建 API Key 的区域相同。) - **App Runner** - [![启动堆栈](assets/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/create/template?stackName=SwiftChatAPI&templateURL=https://aws-gcr-solutions.s3.amazonaws.com/swift-chat/latest/SwiftChatAppRunner.template) + 打开 [SwiftChatAppRunner.template](https://github.com/aws-samples/swift-chat/blob/main/server/template/SwiftChatAppRunner.template),然后下载并上传文件。 - **Lambda**(注意:仅供 AWS 客户使用) - [![启动堆栈](assets/launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/create/template?stackName=SwiftChatLambda&templateURL=https://aws-gcr-solutions.s3.amazonaws.com/swift-chat/latest/SwiftChatLambda.template) + 打开 [SwiftChatLambda.template](https://github.com/aws-samples/swift-chat/blob/main/server/template/SwiftChatLambda.template),然后下载并上传文件。 2. 点击 **下一步**,在"指定堆栈详细信息"页面,提供以下信息: - 用您存储 API 密钥的参数名称填写 `ApiKeyParam`(例如 "SwiftChatAPIKey")。