Uninstall the solution
To uninstall the Real-time Fraud Detection with Graph Neural Network on DGL solution, delete the AWS CloudFormation stack. This will delete all the resources created by the template except the S3 buckets starting with realtime-fraud-detection-frauddetectiondatabucket
and realtime-fraud-detection-bucketaccesslog
. These two buckets will be retained when the solution stack is deleted in order to help prevent accidental data loss. You can use either the AWS Management Console or the AWS Command Line Interface (AWS CLI) to empty, then delete those S3 buckets after deleting the CloudFormation stack.
Using the AWS Management Console
- Sign in to the AWS CloudFormation console.
- Select this solution’s installation parent stack, the default is
realtime-fraud-detection-with-gnn-on-dgl
. - Choose Delete.
Using AWS Command Line Interface
Determine whether the AWS Command Line Interface (AWS CLI) is available in your environment. For installation instructions, refer to What Is the AWS Command Line Interface in the AWS CLI User Guide. After confirming that the AWS CLI is available, run the following command.
aws cloudformation delete-stack --stack-name <installation-stack-name> --region <aws-region>
Deleting the Amazon S3 buckets
Real-time Fraud Detection with Graph Neural Network on DGL solution creates two S3 buckets that are not automatically deleted. To delete these buckets, use the steps below.
- Sign in to the Amazon S3 console.
- Select the bucket name starting with
realtime-fraud-detection-frauddetectiondatabucket
. - Choose Empty.
- Choose Delete.
- Select the bucket name starting with
realtime-fraud-detection-bucketaccesslog
. - Choose Empty.
- Choose Delete.
To delete the S3 bucket using AWS CLI, run the following command:
aws s3 rb s3://<bucket-name> --force
Deleting the endpoint of Amazon SageMaker
An endpoint of Amazon SageMkaker would be created after you train the model. You can remove the endpoint to avoid the recurred cost.
- Sign in to the Amazon SageMaker console.
- Select the Inference - Endpoints from left sidebar.
- Choose the endpoint with name
frauddetection
. - Choose Actions - Delete.