Editing a blueprint after it has been published.

Last updated: November 10, 2024

Overview

In Spacelift, blueprints can exist in two states: draft and published. Once a blueprint is published, it cannot be directly edited.

Blueprint States

  1. Draft:

    • This is the initial state of a blueprint.

    • Draft blueprints are editable but cannot be used to create stacks.

  2. Published:

    • Once a blueprint is published, it becomes available for creating stacks.

    • However, published blueprints cannot be edited or changed back to a draft state.

Workaround

Since direct edits are not allowed on published blueprints, the recommended approach is to clone the blueprint, make your edits, and then publish the new version.

Steps to Edit a Published Blueprint:

  1. Clone the Blueprint:
    Create a copy of the published blueprint. This clone will be in the draft state, allowing you to make edits.

  2. Make Changes:
    Edit the cloned blueprint as needed.

  3. Publish the Edited Blueprint:
    Once you are satisfied with the changes, publish the cloned blueprint. The original blueprint will remain unchanged, while the new version becomes available for stack creation.