Day #8: Terraform Tutorial for Beginners | More about variables

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 3

  • @himanshudevtalla1311
    @himanshudevtalla1311 Год назад

    My query is
    If you provide run time variables and did not mentioned default value in variables .
    And i run terrafrom plan -var “variable “ then i run terraform apply so it ask for variables again.
    So how we can give runtime varriable and save the file

    • @himanshudevtalla1311
      @himanshudevtalla1311 Год назад

      You missed the command terraform apply -var “varriable name”

    • @codewithgauri
      @codewithgauri  Год назад

      Yes you're right...I forgot to apply the changes...so things are the same for plan and apply...you need to execute it using the command below:
      terraform apply -var="variable_name=value"