How to Automate Infrastructure setup using Terraform & Jenkins | Terraform Remote State Store in S3

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 19

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

    Hii , i am getting error in Plan stage , (Error acquiring the state lock) , Solutions for this? , Wts wrong?

  • @sreekanthreddyb
    @sreekanthreddyb 9 місяців тому +1

    Hi, Can you please list down some common error we face while working with Terraform and Jenkins in real time.

    • @DevOpsCoach
      @DevOpsCoach  9 місяців тому +1

      We can’t generalize that. Terraform State file need to be kept in a remote place. You may have terraform state file locked error when some errors happen during terraform apply

  • @bhakta_rg
    @bhakta_rg 11 місяців тому

    Great video sir. What is the use of dynamoDB here? If you could briefly explain?

    • @DevOpsCoach
      @DevOpsCoach  11 місяців тому +2

      DynamoDB is used for exclusive locking to prevent concurrent executions from modifying the same state simultaneously.

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

    is it neccessary to have linux installed in our system to run this? because in my windows built in node , the sh is not recognising terraform init command

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

      you can do it by installing Git or Cygwin.. check the below link
      stackoverflow.com/questions/30374998/run-a-command-shell-in-jenkins

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

    Where did you do the authentication for AWS and Jenkins as in access and secret keys?

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

      You can use IAM role that’s is more preferred as I have installed on Jenkins running on aws itself

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

    while checking out, I am getting error. Failed to connect to repository : Error performing git command: git ls-remote -h . Any resolution on this? my inbound and outbound traffic is set to everywhere while trying to resolve it.

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

      Did you fork my repo?

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

      @@DevOpsCoach I did but turned out it was some issue with the plugin. post reinstallation it worked fine.

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

      @@DevOpsCoach thank you

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

      @@DevOpsCoach but for some reason my tf file wouldnt get update to s3 bucket, and created a lock file issue. for now, ignored it to complete the infra, but working on it to find the fix

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

      @@S0912S have u fixed the lock issue

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

    kindly use mic . very very less audible

    • @bhakta_rg
      @bhakta_rg 11 місяців тому

      perfectly audible to me! Keep up the great work @DevOpsCoach

  • @GopalRoy-nn6ft
    @GopalRoy-nn6ft Рік тому

    repo link ?

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

      github.com/akannan1087/myInfra2021Repo