I know there are these functions for resources.
It seems they are not working for module.
new S3Bucket(this, "test-bucket-move-to", {
bucket: "move-bucket-name",
}).addMoveTarget("move-s3");
new S3Bucket(this, "test-bucket-move-from", {
bucket: "move-bucket-name",
}).moveTo("move-s3");
I’d like to have this working:
new TerraformHclModule(this, `module_new`, {
source: "path",
variables: { }
)).addMoveTarget("module_old");