Skip to content

[Feature Request] DABs: lifecycle bind #4569

@aborsato-metco

Description

@aborsato-metco

Description

The lifecycle tag is limited to prevent_destroy.
There are several other parameters that could make the lifecycle more useful to multi-environment configurations:

  • behavior when the resource is deployed
  • behavior when the resource is destroyed

This is an example of the lifecycle tag:

lifecycle:
  on_deploy:
    bind_if_exists: true
    mode: manage | reference # like terraform datasource
  on_destroy:
    preserve: true

Use Cases

  • This approach would give us better control over what happens in mode: development or target specific. And we could use the resources bound (but not managed) as variable resolution in the DAB configuration.
  • Developers could deploy a DAB in development mode, create a temp schema, test their pipelines, destroy the DAB after the branch is integrated into main where the official schemas (not managed by DAB) are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DABsDABs related issuesEnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions