株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

用法

  • data型などの、terraform planを実行しないと内容を確認できないものの中身を見ることができる
  • リスト型、Map型などの型や、取得されるidなどの実態をあらかじめチェックすることができる

 

実行

terraform console

 

出力

> data.aws_instances.instances.ids[*]
[
  "i-01e56922222222222",
  "i-02de9a42111111111",
]

 

ワンライナーで出力したい場合

echo data.aws_instances.instances.ids[*] | terraform console

 

 

 

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)