Terraform testing | Test Azure Terraform with terratest | Terratest | Terragrunt | Azure terratest

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 18

  • @OurCloudSchool
    @OurCloudSchool  2 ปีที่แล้ว +1

    Source code can be find here on github :
    github.com/bee-a-learner/terraform-test
    Same implementation is discussed here on my blog:
    rakesh-suryawanshi.medium.com/test-azure-terraform-code-with-terratest-6c1b1249aea2

    • @SreeGurukula
      @SreeGurukula 2 ปีที่แล้ว

      # terratestmodules [terratestmodules.test]
      .\main_test.go:146:55: undefined: armresources.ResourcesGetByIDResponse
      .\main_test.go:162:25: undefined: armresources.NewResourcesClient
      .\main_test.go:172:36: undefined: armresources.ResourcesGetByIDResponse
      .\main_test.go:172:62: undefined: ReponseBase
      .\main_test.go:189:13: undefined: ReponseBase
      FAIL terratestmodules [build failed]
      This is error i am getting while executing the command "go test -v -timeout 60m" please help out

  • @itswalid
    @itswalid ปีที่แล้ว +2

    someone get this guy a freaking medal, this is the best complete training/showcase for terratest with terraform in the internet, i searched youtube for like 30 minutes and this the only video for someone who seems to understand each command what it does, thanks brother

  • @rakirahman1011
    @rakirahman1011 2 ปีที่แล้ว +2

    Thanks for the great content!
    Some feedback - in the video you showcase Storage Account, but in your repo and blog you have VNET. As a viewer this is really confusing because if I want to follow along and repro the code, I have to pause your screen and type out the code - which isn't ideal. If you had committed the Storage Account code to the repo that would have fixed this.

    • @OurCloudSchool
      @OurCloudSchool  2 ปีที่แล้ว

      Code is shared in the description as well as the comment which is pined 📌

  • @dahinaan3143
    @dahinaan3143 6 หลายเดือนก่อน

    Hello sir, can you pls give demo for terramate include terratest in ado pipeline

  • @amitshinde14
    @amitshinde14 ปีที่แล้ว

    nice work.. thank you!

    • @OurCloudSchool
      @OurCloudSchool  11 หลายเดือนก่อน

      I am working one more play list which will have all the test for different azure resources with GitHub link please follow the terraform testing playlist from this channel

  • @bismsit29
    @bismsit29 2 ปีที่แล้ว +1

    There would be some changes needed as per the latest package for armresources version 0.3.0 which has been released mid of Jan 2022. The client needs to be created as below
    client := armresources.NewClient(subscriptionId, cred, nil)
    armresources.NewResourcesClient -- this has been removed in the new package.

  • @aakanshaverma1310
    @aakanshaverma1310 9 หลายเดือนก่อน

    Is there any way to authenticate to Azure through terratest program without providing client id and client secret?
    also, not MSI authentication as well.

    • @OurCloudSchool
      @OurCloudSchool  9 หลายเดือนก่อน

      You can try native terraform test command
      th-cam.com/video/oHW7dKBGwX8/w-d-xo.html

    • @aakanshaverma1310
      @aakanshaverma1310 9 หลายเดือนก่อน

      Is there any way to connect with you through email or slack? for asking doubts.

    • @OurCloudSchool
      @OurCloudSchool  9 หลายเดือนก่อน

      @@aakanshaverma1310 mrrsuryawanshi@gmail.com

  • @tradetoacheive
    @tradetoacheive ปีที่แล้ว

    Hello Sir,
    i was trying to store statefile in azure storage account but not able to store that. Seeking some help!