問題文
A team must bring 40 existing resources under management and wants the process to run as part of their normal pull-request pipeline, with the generated configuration reviewed before anything is applied. Which mechanism fits?
選択肢
- Add import blocks to the configuration and run apply, since the apply generates the configuration for any imported resource that is not already declared and commits it to the working directory.
- Use the state removal command on each resource first, then apply, since importing requires a clean state.
- Run the import command 40 times from a script, then run plan and review the diff.
- Add import blocks to the configuration and run plan with the option that writes generated configuration to a file, then review that file.