Workshop Setup
Clean Up
Clean Up Steps #
Once the workshop is complete, follow the steps in this section to uninstall the OpenShift cluster.
Get the cluster ID, the Amazon Resource Names (ARNs) for the cluster-specific Operator roles, and the endpoint URL for the OIDC provider by running the following command:
rosa describe cluster --cluster=$CLUSTER_NAMEDelete the cluster using the following command
rosa delete cluster --cluster=$CLUSTER_NAME --watchDelete the cluster-specific Operator IAM roles:
Note: just accept the default values when prompted.
rosa delete operator-roles --prefix $OPERATOR_ROLES_PREFIXDelete the OIDC provider:
Note: just accept the default values when prompted.
rosa delete oidc-provider --oidc-config-id $OIDC_IDDelete the network:
Note: add the name of the CloudFormation stack used to create the network before running the following command
aws cloudformation delete-stack --region $AWS_REGION --stack-name <stack name i.e. rosa-network-stack-nnnnnnnnnnn>Refer to OpenShift documentation if you’d like to completely remove the Red Hat OpenShift Service from your AWS account.
