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

Ғылым және технология

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 KZread 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 Жыл бұрын

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

  • @SomeoneElsesCloud

    @SomeoneElsesCloud

    Жыл бұрын

    Awesome! Glad it helped ✌️

  • @souravsengupta6183
    @souravsengupta6183 Жыл бұрын

    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.

  • @sai-od6pm
    @sai-od6pm Жыл бұрын

    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: kzread.info/dash/bejne/oW1_ppmlfNW3pso.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: kzread.info/dash/bejne/fKlnj7humdPIfto.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.

  • @ajaysriram2351
    @ajaysriram23512 жыл бұрын

    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?

  • @akorenkov
    @akorenkov2 жыл бұрын

    It's pronounced Azure not Azure

  • @SomeoneElsesCloud

    @SomeoneElsesCloud

    2 жыл бұрын

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

Келесі