EP9: How to Use Terraform TFVARS to Streamline Your Azure Builds

Поділитися
Вставка
  • Опубліковано 27 сер 2024

КОМЕНТАРІ • 12

  • @gripp9k
    @gripp9k 2 роки тому

    Great videos man, just subscribed - I've been trying to learn Terraform on the fly with a project at work that just got thrown over the wall at me, and it's been rough using that approach; your videos are super helpful.

    • @SomeoneElsesCloud
      @SomeoneElsesCloud  2 роки тому +1

      Hey mate, thanks for the support! There will definately be a steep learning curve when starting out, I definately felt that way, but once you understand how it all works, its actually pretty straight forward! I've got a few Terraform videos here, check them out!

  • @xlxRAPT0Rxlx
    @xlxRAPT0Rxlx 2 роки тому

    Your videos are an absolute life-saver. Being someone that’s new in the industry, so many videos out there are just unnecessarily long and poor quality. I’ve also been struggling to find videos that actually talk about how to properly set things up for a professional work environment.
    So I really do appreciate your videos- I wish a lot more videos out there had your production quality and would explain how things are set-up/done in a professional environment

    • @SomeoneElsesCloud
      @SomeoneElsesCloud  2 роки тому

      Thanks for the kind words Mitchell! I hope the videos really help, I don't like to create videos that are based on theory, most of my videos are based on my experience, which is why I don't try and create videos on everything anymore! I just create videos on my own experience! 😬

  • @asmitabagchi6886
    @asmitabagchi6886 3 роки тому

    Kudos to all these videos..cannot wait to learn more from you! have been waiting to learn the terraform with azure in such a way so that the idea stays forever of its usage and none can make it easier like you! please upload more on tf with azure and the knickknacks of what has to be known inorder to crack interviews :)

  • @sudhakarreddyshapathi2289
    @sudhakarreddyshapathi2289 7 місяців тому +1

    Hi I have one question : I have created one variable group in azure devops and liked to keyvault and retrieved key vault secrets to variable group after that I want to use those variable group stored values in terraform configuration I tried with .var and replace tokens but still not working can you provide the code how to do this config

    • @SomeoneElsesCloud
      @SomeoneElsesCloud  6 місяців тому

      You would probably need to pass the secret directly to the command line, but I am unsure if the secret will be exposed in the console, something like: terraform apply -var="secret=$(keyvaultsecret)". You could check out this doco from Thomas Thornton it might show you the way you wanted to do it? thomasthornton.cloud/2021/06/24/storing-and-retrieving-secrets-in-azure-keyvault-with-variable-groups-in-azure-devops-pipelines/

  • @asmitabagchi6886
    @asmitabagchi6886 3 роки тому +1

    In here basically,when you use tfvars for prod and dev there you just declare the names of the resources that's all right? and the rest tf inherits from the main code written previously and thereby provisions everything? just to be sure,how can you declare something which can have my username and password in here? i mean if some data has to have my login creds? would love it if you can cover the concept of env variables in terraform..

    • @SomeoneElsesCloud
      @SomeoneElsesCloud  3 роки тому +1

      Yes, as well as tags. It can really be whatever you want, but that was just a basic example! Generally you shouldn't store passwords in code and may need an external tool (Azure Pipelines) or scripts to collect these details from Azure KeyVault. If you are trying to use different credentials for different environments, you would need separation, I believe this could be done using different Github branches (if you are using code) or Terraform workspaces. I haven't really used local workspaces before as we use Terraform Enterprise at work and that is based around workspaces that we don't really need to configure. I am going to do an Azure Pipeline video with Terraform, which will configure a storage account for as a remote backend, I can add the workspaces in down the track.. Hope this helps, if not let me know if I was way off track! :)

    • @asmitabagchi6886
      @asmitabagchi6886 3 роки тому

      @@SomeoneElsesCloud eagerly waiting for your upcoming ventures!! Lots of love and best wishes from India :)

    • @SomeoneElsesCloud
      @SomeoneElsesCloud  3 роки тому

      Thanks for the support! Hope things are well over that side of the world. Short video coming out Monday!