De-provisioning a Nucleator Account
nucleator account setup
is intended to provision required resources within your Account to support the mainline case of repeated creation and deletion of defined Nucleator Cages and Stacksets.
If you need to "un-setup" an Account that was previously set up by Nucleator, here are the steps that you should follow to do so cleanly. This is most often required in circumstances where you are testing changes to Nucleator functionality. We rarely need to take these steps during mainline operations.
- Visit the S3 Console in your Account and delete the contents of buckets created by Nucleator:
- Nucleator CFT template bucket
- billing bucket
- cloudtrail (ct) bucket
- Visit the S3 Console and delete all buckets created by Nucleator. This removes potential race conditions if AWS is adding objects to these buckets after you have deleted the contents noted above.
- Visit the CloudFormation Console within your Account and delete all parent-level stacks that were created by Nucleator. CloudFormation chains deletion of all child stacks.
- Confirm that all Nucleator-created CloudFormation stacks have been deleted cleanly. If needed, resolve any dependent resource-conflicts and repeat CFT stack deletion until stacks reach DELETE_COMPLETE state.
- Visit EC2 Console and delete all keypairs created by Nucleator.
Move your
~/.nucleator
directory aside. For example:mv ~/.nucleator ~/nucleator.<todays_date>
You can then restart the nucleator installation and configuration process:
- re-run
nucleator init
to recreate a ~/.nucleator directory selectively copy content back into ~/.nucleator as needed. For example, you may want to move your customer-credentials file into the newly created
.nucleator
configuration directory:cp ~/.nucleator.2014.01.26/<todays_date> ~/.nucleator/
- continue on from initial steps, form
nucleator update
onward