Uploaded image for project: 'OpenShift Installer'
  1. OpenShift Installer
  2. CORS-1692

Installer support for multiple smaller tf configurations

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • openshift-4.9
    • None
    • None
    • None
    • Sprint 200, Sprint 201, Sprint 202, Sprint 203

      With terraform v0.14, destroying the bootstrap resources cascades to destroying other resources that we want to retain, for many platforms. This is because the apply (or targeted destroy) now causes all resources to be refreshed and any dependent resources to be destroyed. We should be separating the bootstrap resources into their own configurations so that we can destroy the entire configuration.

       From https://www.terraform.io/docs/cli/commands/plan.html#resource-targeting,

      Instead of using -target as a means to operate on isolated portions of very large configurations, prefer instead to break large configurations into several smaller configurations that can each be independently applied. Data sources can be used to access information about resources created in other configurations, allowing a complex system architecture to be broken down into more manageable parts that can be updated independently.

              jhixson_redhat John Hixson
              mstaeble Matthew Staebler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: