Step 5: Upload apps - AWS SimSpace Weaver

Step 5: Upload apps

The build script packaged your apps as zip files. You must upload these zip files to specific buckets in Amazon Simple Storage Service in order to run your SimSpace Weaver simulation in the cloud. The SimSpace Weaver app SDK provides a helper script to handle the upload.

Docker
To upload your apps
  1. If you aren't there already, go to the tools folder for your project and platform. Your project-folder is path\project-name using the values that you provided when you created the project.

    At a Windows command prompt, enter:

    cd project-folder\tools\windows
  2. Use the helper script to upload your apps.

    .\upload-app-project-name.bat
    Important

    If you use AWS IAM Identity Center (successor to AWS Single Sign-On) or named profiles for the AWS Command Line Interface (AWS CLI), you must use SimSpace Weaver app SDK version 1.12.1 or higher. The latest version is 1.12.3. For information about SimSpace Weaver versions, see SimSpace Weaver versions. The SimSpace Weaver app SDK scripts use the AWS CLI. If you use IAM Identity Center, you can either copy your IAM Identity Center profile for the AWS CLI to your default profile or provide the name of your IAM Identity Center profile to SimSpace Weaver app SDK scripts with the --profile cli-profile-name parameter. For more information, see Configuring the AWS CLI to use AWS IAM Identity Center (successor to AWS Single Sign-On) in the AWS Command Line Interface User Guide and Named profiles for the AWS CLI in the AWS Command Line Interface User Guide.

WSL
Important

We provide these instructions for your convenience. They are for use with Windows Subsystem for Linux (WSL), and are unsupported. For more information, see Set up your local environment for SimSpace Weaver.

To upload your apps
  1. If you aren't there already, go to the tools folder for your project and platform.Your project-folder is path/project-name using the values that you provided when you created the project.

    At a Linux shell prompt, enter:

    cd project-folder/tools/linux
  2. Use the helper script to upload your apps.

    ./upload-app-project-name.sh
    Important

    If you use AWS IAM Identity Center (successor to AWS Single Sign-On) or named profiles for the AWS Command Line Interface (AWS CLI), you must use SimSpace Weaver app SDK version 1.12.1 or higher. The latest version is 1.12.3. For information about SimSpace Weaver versions, see SimSpace Weaver versions. The SimSpace Weaver app SDK scripts use the AWS CLI. If you use IAM Identity Center, you can either copy your IAM Identity Center profile for the AWS CLI to your default profile or provide the name of your IAM Identity Center profile to SimSpace Weaver app SDK scripts with the --profile cli-profile-name parameter. For more information, see Configuring the AWS CLI to use AWS IAM Identity Center (successor to AWS Single Sign-On) in the AWS Command Line Interface User Guide and Named profiles for the AWS CLI in the AWS Command Line Interface User Guide.

Check your Amazon S3 resources

You can check your Amazon S3 buckets to make sure that all of the uploads succeeded. For more information on using Amazon S3, see Creating, configuring, and working with Amazon S3 buckets in the Amazon Simple Storage Service User Guide.

For the sample application, your schema (that you uploaded in a previous step) and app resources use the following name formats:

  • Schema bucket: simspaceweaver-project-name-lowercase-account-number-schemas-region

    • Schema file: project-name-schema.yaml

  • App bucket: simspaceweaver-project-name-lowercase-account-number-app-zips-region

    • Spatial app: project-nameSpatial.zip

    • View (custom) app: project-nameView.zip

For example, given the following project properties:

  • Project name: MyProject

  • AWS account number: 111122223333

  • AWS Region: us-west-2

The schema and app resources would have the following names:

  • Schema bucket: simspaceweaver-myproject-111122223333-schemas-us-west-2

    • Schema file: MyProject-schema.yaml

  • App bucket: simspaceweaver-myproject-111122223333-apps-zips-us-west-2

    • Spatial app: MyProjectSpatial.zip

    • View (custom) app: MyProjectView.zip