Appendix B. Undeploy AWS Infrastructure

GitHub OpenShift openshift-ansible-contrib repository contains an Ansible playbook that provides a friendly and repeatable undeployment experience.

It is usefule to first recover the subscriptions by unregistering the nodes. This may be performed with an Ansible ad-hoc command:

$ ansible nodes -a 'subscription-manager unregister'

Execute undeploy_aws.yaml play to deploy AWS infrastructure.

$ ansible-playbook playbooks/undeploy_aws.yaml

This play will destroy Red Hat OpenShift Container Platform and all AWS infrastructure resources as well as supporting files.