How to use Variable Groups to Improve your Azure Pipelines and Terraform Builds | CCT#1

Поділитися
Вставка
  • Опубліковано 16 лип 2024
  • Welcome to Cheat Code Tuesdays Series, where I share with you cheat codes to level up your ninja skills!
    In this episode we talk about using Variable Groups in your Azure Pipelines to stream line your Terraform Builds. This will be a UA-cam only series and will not be available on the Podcasts (let me know if you want it for audio only versions!)
    Github Code: github.com/someoneelsescloud/...
    EP9: Use Terraform TFVARS to Streamline Your Azure Builds: • EP9: How to Use Terraf...
    EP12: Azure DevOps Pipelines with Terraform Infrasctructure: • EP12: Learn Azure DevO...
    You can now show your appreciation and support the channel: www.buymeacoffee.com/some1els...
    Download Someone Else's Cloud Wallpapers! Add some vibrant colours and positive energy to your Work from Home environment to keep you amped! ✌️ www.someoneelsescloud.com/epi...
    Instagram: / someoneelsescloud
    Twitter: / some1elsescloud
    Github: github.com/someoneelsescloud
    Head on over to the website for Episode notes: ww.someoneelsescloud.com
    See all links to all platforms here: www.someoneelsescloud.com/links
    #azurepipelines #terraform #devops #automation
  • Наука та технологія

КОМЕНТАРІ • 12

  • @stergiazotali2282
    @stergiazotali2282 Рік тому +1

    It just saved my day(or should I say night...)..

  • @souravsengupta6183
    @souravsengupta6183 Рік тому +1

    Hi Sunny, I am trying to create a pipeline for each environment and was facing problem related to the terraform variables. After watching this video I tried passing those variables' values throgh commandOption but not I am getting an error "Too many command line arguments." . Could you please help me out here.

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

    Bro, i tried but i am getting ambiguity task issue. Having same name of task for terraform init,apply . How to resolve?

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

      Hey Ajay, did you modify the yaml pipeline from my repo? Whats the actual error you are getting?

  • @sai-od6pm
    @sai-od6pm Рік тому +1

    Hi Bro,
    Could you please mention a way to declare a file instead of mentioning each variable there ( -var filename like this)
    Awaiting for your reply

    • @SomeoneElsesCloud
      @SomeoneElsesCloud  Рік тому

      Hey mate, so if I understand you correctly, you just want the variables in a file? Theorectically you can write your code like a module and have variables with default values, see this video: ua-cam.com/video/o9KD7lLrQvg/v-deo.html&ab_channel=SomeoneElse%27sCloud and I also created this video using a tfvars file (its still injected via command like but you can put as many values as you wanted in here: ua-cam.com/video/Ju3-V5ipbNw/v-deo.html&ab_channel=SomeoneElse%27sCloud

    • @sai-od6pm
      @sai-od6pm Рік тому

      Thanks for the reply
      I watched all your videos
      My doubt is that As you declared variables in azure pipelines and mentioned those in command options with each variable as -var assetname=${vg-assetname} instead of this can we turn those azure pipelines variables groups into file and use them in the command options as -var filename
      Could you suggest me

    • @sai-od6pm
      @sai-od6pm Рік тому

      Bro waiting for your reply, please

    • @SomeoneElsesCloud
      @SomeoneElsesCloud  Рік тому

      @@sai-od6pm I don't think you understand what the tfvars file does? I believe that is what your are asking but this is a terraform point of view. I am not sure if there is a way to do it in azure devops besides using a command line in your pipeline to read the file and set them as environment variables. I don't think they're is any other way as variable groups are configured via the portal.

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

    It's pronounced Azure not Azure

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

      Agreed, I used to call it Azure but now I call it Azure!