Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11369

CDKTF addMoveTarget() or moveTo() for Module

$
0
0

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");

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 11369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>