Uninstall the solution
You can uninstall the Guidance for Deploying a Prebid Server on AWS solution from the AWS Management Console or by using the AWS Command Line Interface.
Using the AWS Management Console
-
Sign in to the AWS CloudFormation console
. -
On the Stacks page, select this solution’s installation stack.
-
Choose Delete.
Using AWS Cloud Development Kit (AWS CDK)
Run blow command from the root of the project directory
$ cdk destroy
Deleting the Amazon S3 buckets
To prevent accidental data loss, this solution is configured to retain the solution-created Amazon S3 buckets when you delete its AWS CloudFormation stack. After uninstalling the solution, you can manually delete the S3 buckets if you do not need to retain their data. Each stack contains the following seven S3 buckets:
-
ALBAccessLogsBucket -
ArtifactsBucket -
CloudFrontAccessLogsBucket -
DockerConfigsBucket -
DataSyncMetricsBucket -
MetricsEtlBucket -
CloudTrailLoggingBucket
Follow these steps to delete each Amazon S3 bucket.
-
Sign in to the Amazon S3 console
. -
Choose Buckets from the left navigation pane.
-
Locate the S3 buckets whose name begins with prefix,
<stack-name>. -
For each S3 bucket, select the bucket then choose Empty then Delete.
To delete the S3 bucket using AWS CLI, run the following command:
$ aws s3 rb s3://<bucket-name> --force