

终止支持通知：2026 年 5 月 20 日， AWS 将终止对的支持。 AWS SimSpace Weaver 2026 年 5 月 20 日之后，您将无法再访问 SimSpace Weaver 控制台或 SimSpace Weaver 资源。有关更多信息，请参阅[AWS SimSpace Weaver 终止支持](https://docs.aws.amazon.com/simspaceweaver/latest/userguide/simspaceweaver-end-of-support.html)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 AWS CLI 来处理快照
<a name="working-with_snapshots_cli"></a>

您可以使用在 AWS CLI 命令提示符 SimSpace Weaver APIs 下调用。您必须正确 AWS CLI 安装和配置。有关更多信息，请参阅[版本 *2 AWS Command Line Interface 用户指南中的安装或更新最新版本的 AWS * CLI](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)。

**Topics**
+ [创建快照](#working-with_snapshots_cli_create)
+ [从快照启动模拟](#working-with_snapshots_cli_start)

## 使用 AWS CLI 创建快照
<a name="working-with_snapshots_cli_create"></a>

**创建快照**
+ 在**命令提示符**下，调用 `CreateSnapshot` API。

  ```
  aws simspaceweaver create-snapshot --simulation {{simulation-name}} —destination {{s3-destination}}
  ```

  **参数**  
模拟  
启动的模拟的名称。您可以使用 `aws simspaceweaver list-simulations` 来查看模拟的名称和状态。  
destination  
一个字符串，用于为您的快照文件指定目标 Amazon S3 存储桶和可选的对象键前缀。您的对象 key prefix 通常是存储桶中的一个文件夹。 SimSpace Weaver 在此目标的`snapshot`文件夹中创建您的快照。  
Amazon S3 存储桶必须与模拟位于同一 AWS 区域 中。

  **示例**

  ```
  aws simspaceweaver create-snapshot —simulation MyProjectSimulation_23-04-29_12_00_00 —destination BucketName=weaver-myproject-111122223333-artifacts-us-west-2,ObjectKeyPrefix=myFolder
  ```

有关 `CreateSnapshot` API 的更多信息，请参阅 *AWS SimSpace Weaver API 参考[CreateSnapshot](https://docs.aws.amazon.com/simspaceweaver/latest/APIReference/API_CreateSnapshot.html)*中的。

## 使用 AWS CLI 从快照开始模拟
<a name="working-with_snapshots_cli_start"></a>

**从快照启动模拟**
+ 在**命令提示符**下，调用 `StartSimulation` API。

  ```
  aws simspaceweaver start-simulation --name {{simulation-name}} --role-arn {{role-arn}} --snapshot-s3-location {{s3-location}}
  ```

  **参数**  
name  
新作业的名称。您的模拟名称必须是唯一的 AWS 账户。您可以使用 `aws simspaceweaver list-simulations` 来查看现有模拟的名称。  
role-arn  
您的模拟将使用的 Amazon 资源名称 (ARN)。  
snapshot-s3-location  
一个字符串，用于为您的快照文件指定 Amazon S3 存储桶和对象键。  
Amazon S3 存储桶必须与模拟位于同一 AWS 区域 中。

  **示例**

  ```
  aws simspaceweaver start-simulation —name MySimulation —role-arn arn:aws:iam::111122223333:role/weaver-MyProject-app-role —snapshot-s3-location BucketName=weaver-myproject-111122223333-artifacts-us-west-2,ObjectKey=myFolder/snapshot/MyProjectSimulation_23-04-29_12_00_00-230429-1530-27.zip
  ```

有关 `StartSimulation` API 的更多信息，请参阅 *AWS SimSpace Weaver API 参考[StartSimulation](https://docs.aws.amazon.com/simspaceweaver/latest/APIReference/API_StartSimulation.html)*中的。