nutshimit / mashin

Mashin is an extensible rust-powered Infrastructure as Code (IaC) platform with a Javascript runtime, simplifying cloud resource management through a seamless combination of custom providers and expressive scripting.
https://mashin.land
MIT License
20 stars 2 forks source link

Resource delete handling #30

Open lemarier opened 1 year ago

lemarier commented 1 year ago

Is there an existing issue?

Motivation

Trigger delete on the resource when its removed from the MashinScript

Request

Right now we simply delete from the state

https://github.com/nutshimit/mashin/blob/f55b974264774770fe0195a472a02a2d97e4e686/cli/src/cli.rs#L125-L132

Solution

We should call it from the runtime, and trigger the resource delete on the provider

Are you willing to help with this request?

Yes!