Terraform 1.1.0 will include a new command,
terraform add , which can be used to generate resource configuration - either a blank template which you can fill in, or configuration generated from an existing resource in state.
The usual caveats apply: this is an alpha release, not supported for production use. Instead, please try out the release in isolated test environments.
We’d love to hear any feedback on this function! Feel free to leave any thoughts and ideas for
terraform add here. If you come across any bugs, please open a Github issue .
Kristin Laemmert, Terraform Core