O'Reilly logo

Kubernetes for Serverless Applications by Russ McKendrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Removing the cluster

Let's not forget that while the cluster is up-and-running it is costing us money. To remove the cluster and all of the services created by the CloudFormation scripts run the following command:

$ kube-aws destroy

You will receive confirmation that the CloudFormation stacks are being removed, and that it will take several minutes. I recommend that you double-check in the AWS console on the CloudFormation page to ensure that there have not been any errors during the removal of the stacks, as any resources that are left running may incur costs.

We also need to remove the S3 bucket we created and also the KMS; to do this run the following:

$ aws s3 rb s3://kube-aws-russ --force$ aws kms --region=eu-west-1 disable-key --key-id ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required