Open rich-ehrhardt opened 2 years ago
terragrunt works with the following as an example creating the null_resource.create-bootstrap initially and then destroying it afterwards when running terragrunt apply --auto-approve
:
terraform {
after_hook "destroy_bootstrap" {
commands = ["apply"]
execute = ["terraform","destroy","-target","null_resource.create-bootstrap","--auto-approve"]
}
}
For a custom OpenShift IPI build, the bootstrap server, security rules and public IP are created to bootstrap the cluster's master nodes. Once the master nodes have the API running, the rest of the build is done by them and the bootstrap resources need to be removed for security. Options are,