You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)
Issue details
Currently the ability to generate skeleton code for the imported resources is tied to the import command. I would like these functionalities to be decoupled.
Affected area/feature
As a gradual / iterative / trial-and-error adopter / learner, I would like to be able to generate and re-generate the skeleton code repeatedly for arbitrary subsets of resources specified with -f. Currently the only way to do this is with pulumi import, but pulumi import is primarily concerned with importing the resources into the state, only adding the code generation as an afterthought. One consequence of this is the fact that the exit status of pulumi import is tied to the success of the import operation, and will be unsuccessful if the import fails as a whole or in part because of repetition, even if the code generation succeeds. This makes it much harder to use pulumi import as a code generator in a build system, because when it is invoked for the purpose of generating code, it can sometimes "fail" even if code generation succeds, tripping the build system.
I would like to have pulumi generate that can read the same resource specification JSON as pulumi import -f, but its exit status (as well as any warnings displayed) would be tied to the success of generating the code rather than that of the import operation.
Wrapping pulumi and ignoring the exit status is not the solution: pulumi must still be able to meaningfully fail to generate code. I am also a firm believer in Thou Shalt Not Parse Natural Language, so grepping English error messages from pulumi import does not enter into consideration.
The text was updated successfully, but these errors were encountered:
Hello!
Issue details
Currently the ability to generate skeleton code for the imported resources is tied to the
import
command. I would like these functionalities to be decoupled.Affected area/feature
As a gradual / iterative / trial-and-error adopter / learner, I would like to be able to generate and re-generate the skeleton code repeatedly for arbitrary subsets of resources specified with
-f
. Currently the only way to do this is withpulumi import
, butpulumi import
is primarily concerned with importing the resources into the state, only adding the code generation as an afterthought. One consequence of this is the fact that the exit status ofpulumi import
is tied to the success of the import operation, and will be unsuccessful if the import fails as a whole or in part because of repetition, even if the code generation succeeds. This makes it much harder to usepulumi import
as a code generator in a build system, because when it is invoked for the purpose of generating code, it can sometimes "fail" even if code generation succeds, tripping the build system.I would like to have
pulumi generate
that can read the same resource specification JSON aspulumi import -f
, but its exit status (as well as any warnings displayed) would be tied to the success of generating the code rather than that of the import operation.Wrapping
pulumi
and ignoring the exit status is not the solution:pulumi
must still be able to meaningfully fail to generate code. I am also a firm believer in Thou Shalt Not Parse Natural Language, so grepping English error messages frompulumi import
does not enter into consideration.The text was updated successfully, but these errors were encountered: