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
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"
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
You missed the command terraform apply -var “varriable name”
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"