Step 12: Stop and clean up your simulation
It's important to clean up your simulations when you don't need them anymore. SimSpace Weaver simulation resources count towards your service quotas (limits), even if your simulation is stopped. You will continue to get billing charges for simulations that are running. You might also get billing charges for data storage in supporting services, such as Amazon CloudWatch Logs and Amazon Simple Storage Service For more information about SimSpace Weaver service quotas, see SimSpace Weaver endpoints and quotas.
Follow the procedures in this section when you are ready to clean up your simulation.
You can't restart a stopped simulation.
You can't recover a deleted simulation.
Clean up simulation resources in SimSpace Weaver
You must stop your simulation before you can delete it. Deleting a simulation removes resources in SimSpace Weaver only. You must perform separate steps to delete resources that your simulation created or uses in other services (see the following section).
Clean up simulation resources in supporting services
To support your simulation, SimSpace Weaver creates resources in other services. SimSpace Weaver doesn't delete these resources when you delete your simulation. You can delete these additional resources if you don't need them.
You might get billing charges for any of these resources that you don't delete.
To delete support resources for your simulation
-
Delete the AWS CloudFormation stack for your project. For more information about working with AWS CloudFormation, see Deleting a stack on the AWS CloudFormation console in the AWS CloudFormation User Guide.
weaver-
project-name
-stack
Note Your AWS CloudFormation stack will probably report
DELETE_FAILED
because it can't delete Amazon S3 buckets that aren't empty. You will delete your Amazon S3 buckets in the following step. -
Delete Amazon S3 buckets. For more information on working with Amazon S3 buckets, see Deleting a bucket in the Amazon Simple Storage Service User Guide.
-
weaver-
lowercase-project-name
-account-number
-app-zips-region
-
weaver-
lowercase-project-name
-account-number
-schemas-region
For example, the project named
MyProject
in the account111122223333
in theus-west-2
Region has the following buckets:-
weaver-myproject-111122223333-app-zips-us-west-2
-
weaver-myproject-111122223333-schemas-us-west-2
Note You must delete the contents of an Amazon S3 bucket before you can delete the bucket.
-
-
If you turned on logging for your simulation, delete the CloudWatch Logs log group. For more information about working with CloudWatch Logs, see Working with log groups and log streams in the Amazon CloudWatch Logs User Guide.
The name of the log group for your simulation is specified in its schema (configuration file):
project-folder
\tools\project-name
.yamlThe name of the log group is the value of
log_destination_resource_name
. The following schema snippet shows that the log group for the sample application isMySimulationLogs
.simulation_properties: log_destination_service: "logs" log_destination_resource_name: "MySimulationLogs" default_entity_index_key_type: "Vector3<f32>"
Warning If you start multiple simulations that specify the same log group then the log data for all of those simulations will go to the same log group. If you delete the log group then you delete the log data for all simulations that use that log group. If you delete a log group for a running simulation then the simulation will fail.