cloudnloud / weekly-cloud-engineer-interview-program

12-week-cloud-engineer-program
34 stars 3 forks source link

Is Auto deletion / auto-expiration of Local variable really good for us ? #13

Open kkeyan688 opened 1 year ago

kkeyan688 commented 1 year ago

Can you please explain more about "Auto deletion / auto-expiration of Local variable really good for any project ? "

bsrinivasanCbe commented 1 year ago

First of all, Local variable are used for local scope only, means it will not exist outside the place it is created. Local variables are the ways to reuse the value in the current scope. This is for terraform.

May I know why you need to delete this automatically in terraform ? Do you have any specific use case available for this ask?