-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Labels
Description
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: trueUse Cases
- This approach would give us better control over what happens in
mode: developmentortargetspecific. 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
mainwhere the official schemas (not managed by DAB) are.
Reactions are currently unavailable