GitLab Tutorial for AWS Infrastructure as Code with Terrafom | GitLab Managed Terraform State file

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

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

  • @bit-studios1
    @bit-studios1 ปีที่แล้ว +7

    This is definitely the best tutorial on setting up terraform with GitLab!!! Outstanding video. 👏🏿👏🏿👏🏿👏🏿🙌🏿

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

      Thank you for watching my videos.
      Glad that it helped you. Do keep watching and keep learning from my videos.

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

    Thank you!
    I haven't find anywhere in documentation that tfstate file first time need to manually created so wasted so many hours.
    Thanks to you for sharing the knowledge.

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

      Thank you for watching my videos.
      Glad that it helped you.

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

    This is a great video that I can use to set up my CICD job for my terraform code. Thank you so much for all your efforts.

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

      Thank you for watching my videos.
      Glad that it helped you.

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

    everthing worked perfectly for me.. just a quick question. how to manage the overrides of variables that we generally do via tfvars?

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

      Thank you for watching my videos.
      There are multiple ways to override variables value. You can customise to process to change the varaible value doing executions. But under the hood you should mandatory parameters values.

  • @ajop2235
    @ajop2235 8 หลายเดือนก่อน +1

    Thanks for the tutorial. I manage to understand it even with my limited knowledege. I will now try to see if I can replicate this but instead of a vpc I will start an EC2 instance

    • @cloudquicklabs
      @cloudquicklabs  8 หลายเดือนก่อน

      Thank you for watching my videos.
      Glad that it helped you .

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

    Great tutorial. As a gitlab beginner, this helped a lot. Thank you Sir!

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

      Thank you for watching videos.
      Happy that it helped you.

  • @thepeacefulworld2050
    @thepeacefulworld2050 6 หลายเดือนก่อน +1

    Nice helpful video? do we need to create this state file steps for every new repo we add ???

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

      Thank you for watching my videos.
      Indeed you need to create per backend definition of your terraform.

  • @KarismaRay-s6m
    @KarismaRay-s6m ปีที่แล้ว +2

    Really nice video, It helped me a lot to understand and implement. Thank you..

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

      Thank you for watching my videos.
      Glad that it helped you.

  • @devd6800
    @devd6800 11 หลายเดือนก่อน +1

    it would be really great if you can breakdown different parts of this video so people can quickly get on to the topic they want

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

      Thank you for watching my videos.
      Glad that it helped you.
      I shall take this feedback.

  • @sivaprasanth5961
    @sivaprasanth5961 4 หลายเดือนก่อน +1

    This video is really amazing and next level.

    • @cloudquicklabs
      @cloudquicklabs  4 หลายเดือนก่อน

      Thank you for watching my videos.
      Glad that it helped you.

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

    It was a great effort with a clear explanation, keep it up!

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

      Thank you for watching my videos.
      Thank you so much for your encouraging words and glad that it helped you.

  • @Think_big260
    @Think_big260 5 หลายเดือนก่อน +1

    Where we have declared the CI variables which have been used in gitlab-ci yml files?

    • @cloudquicklabs
      @cloudquicklabs  5 หลายเดือนก่อน

      Thank you for watching my videos.
      Variable are declare in gitlab setting it self, I would suggest you to please watch the video patiencefully.

  • @bjblk1
    @bjblk1 11 หลายเดือนก่อน +1

    Thanks for such an awesome video.

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

      Thank you for watching my videos.
      Glad that it helped you.

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

    very precise explanations. Many thanks. Great work.

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

      Thank you for watching my videos.
      Glad that it helped you.

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

    Thank you this was VERY helpful

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

      Thank you for watching my videos.
      Glad that it helped you.

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

    you done a greate work creating this tutorial.

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

    Excellent video. I appreciate your work. Just a note, I had to remove "Protected" option from pipeline variables to make it work in gitlab 16. Thanks

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

      Thank you for watching my videos.
      I am glad that it helped you.

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

    Great video! Unfortunately, group token access has become a paying service. Do you know another way to link the AWS account and Gitlab?

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

      Thank you for watching my videos.
      I am currently looking to create new version of this video where I would covering further required Authentication.

  • @davidvacca4295
    @davidvacca4295 9 หลายเดือนก่อน +1

    Do you have something similar how to set up gitlab for deploy AMI with packer?

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

      Thank you for watching my videos.
      I have not done any videos on this concept but would like to explore based on your input here.

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

    excellent tutorial!!! thanks!!

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

      Thank you for watching my videos.
      Glad that it helped you

  • @learningwithBhai
    @learningwithBhai 3 หลายเดือนก่อน +1

    Hii Sir can we connect, I am not able to create the terraform state

  • @techconcepts4you850
    @techconcepts4you850 4 หลายเดือนก่อน +1

    Appreciate and subscribed!

    • @cloudquicklabs
      @cloudquicklabs  4 หลายเดือนก่อน

      Thank you for watching my videos.
      Glad that you liked it.

  • @A.A.
    @A.A. 10 หลายเดือนก่อน +1

    Thanks, it really helped.

    • @cloudquicklabs
      @cloudquicklabs  10 หลายเดือนก่อน

      Thank you for watching my videos.
      Glad that it helped you.

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

    Hi Sir please respond to this issue
    Error refreshing state: 2 problems:
    - Unsupported state file format: The state file could not be parsed as JSON: syntax error at byte offset 1.
    - Unsupported state file format: The state file does not have a "version" attribute, which is required to identify the format version.

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

      Thank you for watching my videos.
      Did you first created state file locally and uploaded that to Gitlab state option. And hope that you watched the video correctly.

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

      @@cloudquicklabs Thanks for reply.
      Yes i have did the steps same as the video, created state file locally and uploaded by running terraform plan command

  • @MohammadMasukImtiazMasuk
    @MohammadMasukImtiazMasuk 6 หลายเดือนก่อน +1

    Don't you need a runner to configure gitlab ci/cd?

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

      Thank you for watching my videos.
      I have used default runners for this demo.

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

    Hello to you all.
    I have a problem and I don’t know how to solve it.
    I have my project and within my project I created several folders for different Stacks, example:
    VPC
    EC2 site
    ECS
    As we know terraform must be started and run in the directory. In the tutorial was passed the variable to get the project and the folder was inserted to which he used in the tutorial:
    variables:
    TF_DIR: ${CI_PROJECT_DIR}/terraform
    Before running terraform init it runs cd ${TF_DIR} to go to the correct directory.
    How do I do this in my case? would need to pass in my variable something that takes my directory, so when I run something the cd command goes to the current directory and with that can do the terraform init and everything else.
    How can I solve this problem?

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

      Thank you for watching my videos.
      When you have multiple folders which means you have Terraform modules, as you are aware that Terraform execution limited to directory, you need to create Terraform module here say one more terraform/main.tf, where main.tf would contains the module invokes i.e running tf files in those three folders (i.e VPC, ECS, ECS site etc)

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

      Indeed it is.
      You are welcome.

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

    nice video, you have created a manual step for tfstate file, cant gitlab automatically create it?

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

      Thank you for watching my videos.
      Currently suggested approach is shown in video. May be in future GitLab starts to support it.

  • @点滴-亚历克斯
    @点滴-亚历克斯 20 วันที่ผ่านมา +1

    i got error --This job is stuck because the project doesn't have any runners online assigned to it.

    • @cloudquicklabs
      @cloudquicklabs  20 วันที่ผ่านมา +1

      Thank you for watching my videos.
      Try to clear the Runner cache if you have set it up.
      Goto CI/CD>>Pipelines>>on top side >> clear Runner Caches
      And also check scaling of runners are set there.

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

    Excellent video

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

      Thank you for watching my video.
      Keep watching and keep learning from my videos.

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

    Initializing the backend...
    Successfully configured the backend "http"! Terraform will automatically
    use this backend unless the backend configuration changes.
    Error refreshing state: HTTP remote state endpoint requires auth
    Cleaning up project directory and file based variables
    00:01
    ERROR: Job failed: exit code 1

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

      Thank you for watching videos.
      Here errors looks to be with permissions. Could you please check the steps again.

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

      If you set any of the pipeline variables to be protected, check to make sure that you are not running this pipeline against an unprotected branch. Only master is protected by default.

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

    video starts from 9:00

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

      Thank you for watching my videos.
      And thank you for your valuable inputs. I shall take it.

    • @Aditya-rw2ly
      @Aditya-rw2ly 27 วันที่ผ่านมา +1

      Thanks for saving time. Appreciated. 👍

  • @vijaymestry4236
    @vijaymestry4236 6 หลายเดือนก่อน +1

    best

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

      Thank you for watching my videos.
      Glad that it helped you.

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

    Awesome video

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

      Thank you for watching my video.
      Keep watching and keep learning from my videos.

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

    Nive video . Please send GitLab url for code.

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

      Thank you for watching my videos.
      Please find GitLab repo link gitlab.com/RekhuGopal/aws-iac/-/tree/main

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

    Mama i pinky akka brother chetan

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

      Hi Chetan.
      Yes.. Keep watching my channel :)

  • @trollingday7124
    @trollingday7124 5 หลายเดือนก่อน +2

    Very nice video, could someone try to share the steps to do same for Azure cloud??? Thx in advance

    • @cloudquicklabs
      @cloudquicklabs  5 หลายเดือนก่อน +2

      Thank you for watching my videos.
      Glad that it helped you.
      I shall create new on Azure and GitLab soon.

  • @GaganGautam-ik9ko
    @GaganGautam-ik9ko ปีที่แล้ว +1

    getting this error, terraform plan

    │ Error: Error acquiring the state lock

    │ Error message: Failed to make lock HTTP request: net/http: invalid method "POST-backend-config=unlock_method=DELETE"

    │ Terraform acquires a state lock to protect the state from being written
    │ by multiple users at the same time. Please resolve the issue above and try
    │ again. For most commands, you can disable locking with the "-lock=false"
    │ flag, but this is not recommended.

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

      Thank you for watching my videos.
      Here it looks like your state file already has the lock. First do remove it. Then try terraform plan should be working.

    • @GaganGautam-ik9ko
      @GaganGautam-ik9ko ปีที่แล้ว

      @@cloudquicklabs how to do it and now it is showing some error of auth enable