Terraformで、1からリソースを構築する場合と、tfstateから読み取って修正版を構築する場合のmain.tfの書き方は異なりますか?

0

Terraformで、1からリソースを構築する場合と、tfstateから読み取って修正版を構築する場合のmain.tfの書き方は異なりますか? また、後者の書き方が知りたいです。

profile picture
Nagai
asked 5 months ago138 views
1 Answer
0
Accepted Answer

main.tfというよりTerraformの書き方自体は変わらないと思います。
「terraform plan」コマンドを実行して差分が無くなるまでmain.tfのパラメータを更新するといった作業を行う感じになると思います。
こちらのブログが参考になると思います。
https://qiita.com/shun198/items/c13529253cea5b4f41d3

profile picture
EXPERT
answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions