There's definitely something that works like that in terraform for AWS creation - you create a data template and then call it out in the config for the aws provider settings when creating the VM, but ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results