Removing the toolkit
You can remove the Amazon GameLift Testing Toolkit from your AWS account by using the source code's deployment script, the AWS Management Console, or the AWS Command Line Interface.
Using deployment script
You can remove the toolkit using the deployment script by opening a terminal window, navigating to the toolkit's root directory, and then running the following command:
yarn delete-toolkit [--profile <profileName>]
To remove the sample game, run the following command:
yarn delete-sample-game [--profile <profileName>]
Using AWS Management Console
- Sign in to the AWS CloudFormation console.
- Navigate to the Stacks page.
- Select the AGTT-ManagementConsoleStack-WebStack stack, choose Delete, and wait until complete.
- Select the AGTT-ManagementConsoleStack-BackendStack stack, choose Delete, and wait until complete.
- Select the AGTT-ManagementConsoleStack-SecurityStack stack, choose Delete, and wait until complete.
- Select the AGTT-ManagementConsoleStack-DataStack stack and choose Delete.
Optionally, to remove the sample game:
- Sign in to the AWS CloudFormation console.
- Navigate to the Stacks page.
- Select the AGTT-SampleGameStack-VirtualPlayerStack stack, choose Delete, and wait until complete.
- Select the AGTT-SampleGameStack-BackendStack stack and choose Delete.
Using AWS Command Line Interface
To delete from terminal window, determine the installation stack name and then run the following commands:
aws cloudformation delete-stack --stack-name AGTT-ManagementConsoleStack-WebStack
aws cloudformation delete-stack --stack-name AGTT-ManagementConsoleStack-BackendStack
aws cloudformation delete-stack --stack-name AGTT-ManagementConsoleStack-SecurityStack
aws cloudformation delete-stack --stack-name AGTT-ManagementConsoleStack-DataStack
If you installed the sample game, you can remove it by running the following commands:
aws cloudformation delete-stack --stack-name AGTT-SampleGameStack-VirtualPlayerStack
aws cloudformation delete-stack --stack-name AGTT-SampleGameStack-BackendStack
Deleting the Amazon S3 buckets
This solution is configured to retain the solution-created Amazon S3 bucket (for deploying in an opt-in Region) if you decide to delete the AWS CloudFormation stack to prevent accidental data loss. After uninstalling the solution, you can manually delete this S3 bucket if you do not need to retain the data. Follow these steps to delete the Amazon S3 bucket.
- Sign in to the Amazon S3 console.
- Choose Buckets from the left navigation pane.
- Locate the agtt-managementconsolestack-websitebucket{IDENTIFIER} S3 bucket.
- Select the S3 bucket and choose Delete.
To delete the S3 bucket using AWS CLI, run the following command:
aws s3 rb s3://agtt-managementconsolestack-websitebucket{IDENTIFIER} --force