Prerequisites
- The finished module from Build the module from the generated code.
- The environment variables set for the dev tenant.
1. Add the imports
Createenvs/dev/imports.tf with the same five imports as the scratch folder. Resources inside a module have addresses that start with module. and the module’s name from main.tf, so the addresses now start with module.authsignal..
2. Plan
1 to change on the Email OTP configuration. Applying it sends the key.
If it shows any other changes, the module doesn’t match the tenant yet. Update the module, not the tenant, and plan again. If an attribute comes from a variable, update its value in envs/dev/terraform.tfvars instead. Reading a plan explains how to read the differences.
3. Apply
tfplan. It contains the full state of every resource in the plan.
Verify
No changes. Commit the module and the envs/dev files. Dev is now managed by Terraform.
