Day-6 | Terraform Workspaces Demo | Dev - QA - Stage |

Поделиться
HTML-код
  • Опубликовано: 21 сен 2023
  • Support my work
    www.buymeacoffee.com/abhishekprd Hi Everyone, My Name is Abhishek and my channel is focused on delivering Free content on DevOps and Cloud. Follow my channel for practical learning of DevOps and Cloud. Don't miss the FREE DEVOPS COURSE and FREE AWS COURSE from Playlists section.
    Doubts Clearing Group
    www.youtube.com/@AbhishekVeer...
    GitHub Repo for the Series
    github.com/iam-veeramalla/ter...
    Instagram: / abhishekveeramalla_off...
    Book 1:1 with me on TopMate for career guidance
    topmate.io/abhishek_veeramalla
    Public Telegram Channel For Notes and Updates
    t.me/abhishekveeramalla
    About me:
    ========
    LinkedIn: / abhishek-veeramalla-77...
    GitHub: github.com/iam-veeramalla
    Medium: / abhishekveeramalla-av
    What is Terraform ?
    Learn Terraform from basics
    Terraform real world examples
    Terraform course
    Best terraform course
    Terraform modules
    Terraform workspaces
    #devops #futureofdevops #kubernetes #sre #aws #azure
    DEVOPS FAQ
    DEVOPS
    WHAT IS DEVOPS ?
    WHY DEVOPS ?
    HOW TO LEARN DEVOPS ?
    LEARN DEVOPS IN 60 DAYS ?
    NON IT TO IT BACKGROUND ?
    IS DEVOPS EASY TO LEARN ?
    BEST DEVOPS COURSE
    FREE DEVOPS COURSE
    #AbhishekVeeramalla
    BEST DEVOPS VIDEOS
    DEVOPS INTERVIEW QUESTIONS
    EASY DEVOPS VIDEOS
    BEST WAY TO LEARN DEVOPS
    PYTHON FOR DEVOPS
    PYTHON PROJECTS FOR DEVOPS
    LEARN PYTHON
    PYTHON PROJECTS FOR AWS
    AWS PYTHON PROJECTS
    AWS LAMBDA FUNCTIONS
    WHAT IS GITOPS ?
    WHY GITOPS ?
    LEARN GITOPS ?
    GITOPS FREE COURSE
    What is AWS ?
    LEARN AWS FOR FREE
    AWS COURSE
    AWS COURSE FOR DEVOPS
    AWS CLI Deep Dive .
    .
    Disclaimer: Unauthorized copying, reproduction, or distribution of this video content, in whole or in part, is strictly prohibited. Any attempt to upload, share, or use this content for commercial or non-commercial purposes without explicit permission from the owner will be subject to legal action. All rights reserved.
  • РазвлеченияРазвлечения

Комментарии • 157

  • @abhilash24
    @abhilash24 7 месяцев назад +8

    Your Selflessness talks a lot! about you. Someone finishing a series of yours is a Hero for sure. 😉💗

  • @shaffishaik3852
    @shaffishaik3852 8 месяцев назад +4

    Excellent abhi anna.. No one explains complex topics in a easy way better than you...😊😊

  • @bhanuprakash4714
    @bhanuprakash4714 10 месяцев назад +4

    Please take care and thanks for the session anna. Looking forward for the Day 7 in Terraform Zero to Hero.

  • @bepositive108
    @bepositive108 3 месяца назад

    Deeply grateful at you Abhishek. I owe you a lot. You have own so many hearts by the extraordinary skill you have developed in you that is making things simple and straight and communicating the way everyone needs 🎉.

  • @saarvan
    @saarvan 7 месяцев назад

    you are awesome.. thanks bro for your efforts making it so easy for us to understand the complex topics.

  • @samahome
    @samahome 10 месяцев назад +3

    Great working Session on this Workspaces concept in Terraform. Kudos for all your fabulous efforts in producing this Terraform Series. (zero to hero)

  • @joelfernandez5141
    @joelfernandez5141 10 месяцев назад +1

    Thank you so much Sir, God bless you

  • @PrincePazol
    @PrincePazol 10 месяцев назад

    Thank you so much. I am learning a lot from channel. 🍀

  • @guntiramaiah-lb9dy
    @guntiramaiah-lb9dy 2 месяца назад +1

    Your teaching skills are god's gift. Very easy to understand.

  • @dudyalaganesh6998
    @dudyalaganesh6998 8 месяцев назад +1

    Thank you so much for all the information about the terraform WorkSpaces.

  • @Anilkumar-pe5bt
    @Anilkumar-pe5bt 6 месяцев назад +1

    Nice video learn many things

  • @sagarahire-ys3uj
    @sagarahire-ys3uj 10 месяцев назад +1

    ur content doesnt fall back bro...was just going thru workspace and then this video...grateful for all ur efforts

  • @sachinbiradar5804
    @sachinbiradar5804 10 месяцев назад +1

    learning new things and ur commitment to provide ur knowledge on terraform thank u abhishek anna waiting for some more courses

  • @Its_gk99
    @Its_gk99 3 месяца назад

    Fabulous ❤❤❤..it's really helped me a lots..

  • @kmrathnam55
    @kmrathnam55 Месяц назад

    an amazing explanation, Abhishek. God Bless You!!

  • @kumarbala12
    @kumarbala12 10 месяцев назад

    Thanks a lot Abhi , your work through with the demo and the possible pitfalls we may encounter warnings .. are fantastic .. Will you be sharing any real world project assignment like for us to do after the 7 days course ? , it would be great if you can .. . Thank you so much .. take care please ..

  • @fitness-dose-xp
    @fitness-dose-xp 10 месяцев назад +1

    This is awesome Abhishek.Thank you

  • @user-ih5pr8nq2h
    @user-ih5pr8nq2h 7 месяцев назад

    awesome explaination

  • @sivaranganath6516
    @sivaranganath6516 6 месяцев назад +1

    Thanks Abhishek.... its Crystal clear explanation ........your are Terraform Hero👌

  • @csworld9319
    @csworld9319 5 месяцев назад

    Amazing series

  • @rohitbhushan7229
    @rohitbhushan7229 10 месяцев назад +1

    Thanks Abhishek. I practiced and understood workspace concept. Waiting for next session

  • @AmrutaWagh-kb3yv
    @AmrutaWagh-kb3yv 10 месяцев назад +2

    really great session i cleared now completely workspaces

  • @Learn_IT_with_Azizul
    @Learn_IT_with_Azizul 9 месяцев назад

    very useful. I was searching this. Thank YOU

  • @sasikanth6026
    @sasikanth6026 9 месяцев назад +1

    Awesome explanation, our doubts are getting cleared while watching the video and practicing along with you. Thanks a lot Abhishek!!!

  • @soumyadipchatterjee2267
    @soumyadipchatterjee2267 6 месяцев назад +1

    I failed multiple times , but never give up and at last learn Workspace . Practicing without sleepless nights😊😊 . Excellent content Abhishek my friend !

  • @veeranarayana9966
    @veeranarayana9966 10 месяцев назад +2

    Great to learn Terrafom

  • @sauraabh
    @sauraabh 10 месяцев назад +2

    Hi, Abhishek. I really like your videos! They are no BS and very knowledgeable. So Thanks you so much for doing this. Also can you make a project on terraform and ansible combined something based on real world?

  • @BanarasGallery
    @BanarasGallery 10 месяцев назад +1

    Absolutely great

  • @shaikasif4093
    @shaikasif4093 10 месяцев назад +1

    Thanks for sharing anna❤

  • @jaswanth_kumar_k
    @jaswanth_kumar_k 10 месяцев назад +1

    Thanks for the content

  • @arjundarshi
    @arjundarshi 4 месяца назад

    Awesome Abhishek 👏

  • @ktsherpa
    @ktsherpa 10 месяцев назад +1

    Thank you so much for a wonderful session.

  • @lokeshrudra8588
    @lokeshrudra8588 10 месяцев назад +1

    Thank you for your efforts..
    Amazing content. 👏
    Waiting for Python course in near future.

  • @anandhakumarg6032
    @anandhakumarg6032 Месяц назад

    Abishek, that was so fabulous dude eventhough you were not feeling that much great, still prefer to make a content for Others and did it successfully as well.

  • @ramesh_kumar_verma
    @ramesh_kumar_verma 10 месяцев назад +1

    thankyou sir

  • @ashishpandey8766
    @ashishpandey8766 7 месяцев назад +1

    Thanks, Abhishek

  • @proplusgaming3361
    @proplusgaming3361 5 месяцев назад

    THANKS ATON ABHISHEK

  • @SameerKumar-sy5zb
    @SameerKumar-sy5zb 8 месяцев назад +1

    Thanks Abhishek Sir.. Also one suggestions for peers never use terraform destroy --auto-approve.😛

  • @dr.amarmudiraj
    @dr.amarmudiraj 9 месяцев назад +1

    "Great work, Abhishek! I'm eager to learn how we can effectively handle storing various GCS backends to accommodate different state files originating from distinct workplace environments, such as having a 'dev-statefile' to store the 'dev-gcs-bucket.' Could you assist me in understanding this, please?"

  • @vaishnavienterprises7656
    @vaishnavienterprises7656 10 месяцев назад +1

    No doubt anyone can learn nd master watching your videos without wasting in single np... while watching/practicing your series like AWS, devops,now terraform to much confidence...same time unable to remember commands nd topics...is there any suggestions which one we need to more concentration....for asking this not good for your hardworking nd time spending for us but i hope everyone facing same issue 😔..

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад

      Hi Vaishnavi. Just keep practicing there are no shortcuts. I am sure you will remember and All the best :)

  • @ravindraravi7435
    @ravindraravi7435 5 месяцев назад +1

    Thank you ^^

  • @mayurichikne7938
    @mayurichikne7938 10 месяцев назад +2

    Hi Abhishek, plz take care,... I request can you please make a project in Terraform by utilizing all 7 videos content

  • @sumankasu162
    @sumankasu162 10 месяцев назад +1

    Nice explanation sir

  • @anilsree06
    @anilsree06 9 месяцев назад +1

    Thanks Abhishek!! Particle was practiced with three modes of workspaces dev,stage,prod with different instance types. Thanks once again abhishek for helping us to implement step by step carefully with more cautions. Thanks once again.

  • @muralinathsrirangam
    @muralinathsrirangam 10 месяцев назад

    Hi Abhishek excellent content, thank you. I see that you are Presenting in cloud native days Pune, can we have any coupon code to attend the session .

  • @Kk-rl7nv
    @Kk-rl7nv Месяц назад

    Hi Abhishek,
    Thanks for explaining the concept, if possible please suggest if we create a workspace with the name dev and dev team wants multiple instances on day to day basis so tfstate file maintaining resource block to maintain resources suppose “example” so in dev workspace if we create t2.micro instance suppose so as we provision t2.medium then it will replace existing so can you help to create how we can manage this.

  • @manojgandham-lu7tu
    @manojgandham-lu7tu 10 месяцев назад +1

    Supprrrrr❤

  • @Cs_Naidu
    @Cs_Naidu 2 месяца назад

    14:04 Hi Bro, in that case do we need to create multiple statefiles in s3 bucket and multiple dynamodb table to lock each state file per environment? ❤

  • @user-yv5bu4fm9v
    @user-yv5bu4fm9v 4 месяца назад

    If a backend is being used, does that mean the workspaces and their respective state files will be stored in S3?

  • @bharathkumar8317
    @bharathkumar8317 8 месяцев назад

    If we provision a stack with some resources with terraform for development team, how do we share passwords or grant access to them?

  • @mridulgosain
    @mridulgosain 10 месяцев назад

    @abhishek please make vedio on for_each, count ,functions,map and conditions in terraform

  • @manishaacharya2907
    @manishaacharya2907 9 месяцев назад +1

    Very nice video Abhishek, Now I'm getting into 7th Day successfully. 1 request- could you please make a video on the terraform certification preparation as well. A go-to guide at least.

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  9 месяцев назад

      Right now my focus is on job ready courses and not on certifications but some people were able to clear certifications by following these videos.

    • @manishaacharya2907
      @manishaacharya2907 9 месяцев назад

      No issues, thank you

  • @rajkamal5318
    @rajkamal5318 10 месяцев назад +1

    I really appreciate your commitment towards teaching even though you are unwell!! Get well soon❤!
    I have a question:
    Already an EC2 instace is created using the existing main.tf file and statefile is generated. If i want a 2nd instance to be created using the same main.tf without distroying/modifying the earlir EC 2 instance created and same state file has to be updated without using workspace concept what logic should be applied?

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад +1

      Just add the new resource block or increase the resource count

    • @rajkamal5318
      @rajkamal5318 10 месяцев назад

      @@AbhishekVeeramalla Thank you

  • @chaitanya685
    @chaitanya685 10 месяцев назад

    Thank you for sharing such an amazing content. I have a question here, so how can we maintain the state locking by using S3 and DynamoDB if we are using workspaces.

  • @psychoskybgmi8364
    @psychoskybgmi8364 Месяц назад

    Then How will write backend file for multiple env workspace to storing state file in s3 please answer me and if it's possible then make a video on it plzzzzzzzzzz

  • @lokanarayana763
    @lokanarayana763 10 месяцев назад

    unfortunately, we have deleted out state file in staging env how we will recover. is there any options

  • @ankit7881
    @ankit7881 10 месяцев назад +1

    Thanks sir , also sir please complete Argo cd & Argo workflows playlist after terraform , as I am only dependent on u 😢

  • @karthiksundaram544
    @karthiksundaram544 5 месяцев назад

  • @meghanavk1957
    @meghanavk1957 3 месяца назад

    Hi Abhishek , great videos. I learnt terraform from you and currently on a task of creating 100 + instances acoss different environment. Everything is going fine just one doubt. Say i have a Stg environment and i have created 4 instances already with similar configuration after a while i get a request of creating 2 more instances . Now if tstate.file exists will it not.modify the existing intsance instead of adding 2 more??

  • @vivekgc2051
    @vivekgc2051 2 месяца назад

    abhishek i came across one doubt how tf state file manged in backend for workspace...... so got the answer below is the backend code ...wokspace place holder in below code will dynamically create file for each workspace .....
    if you get time you can add this one example video :)
    terraform {
    backend "s3" {
    bucket = "your-terraform-state-bucket"
    key = "terraform-state/{workspace}/terraform.tfstate"
    region = "us-west-2"
    dynamodb_table = "terraform-state-lock"
    }
    }

  • @PrasanthDurga-tb5yu
    @PrasanthDurga-tb5yu 2 месяца назад

    Hi Abhishek I have one doubt by using workspaces concept can create different environments, and it will create terraform statefile in local git repos.
    But if we use s3 bucket to store statefiles. Then how this workspace concept will work

  • @asmaayesha
    @asmaayesha 9 месяцев назад

    Hi Abhishek please make a video how to setup eks cluster using terraform

  • @BharathKumarReddy2103
    @BharathKumarReddy2103 10 месяцев назад +1

    ❤❤❤

  • @user-xb5vw3yr1w
    @user-xb5vw3yr1w 5 месяцев назад

    I have one question Abhishek bhai
    As I can't keep these state files on local
    So, I want to keep it on S3 bucket.
    I will use terraform backend but how do I need to configure all the state files
    Please reply

  • @sheetal-td5fn
    @sheetal-td5fn 3 месяца назад

    Hi Abhishek, I have written exact code but still getting error when I am switching the env..
    Workspace "stage" doesn't exist.
    You can create this workspace with the "new" subcommand
    or include the "-or-create" flag with the "select" subcommand.
    Kindly help

  • @sukethnemani-qv3wd
    @sukethnemani-qv3wd 10 месяцев назад +1

    Hi Abhishek bro for a fresher perspective I mean those who are new to terraform , what concepts we need to give importance to the interview point of view , can u reply please

  • @ajayjohn1502
    @ajayjohn1502 10 месяцев назад +1

    😍

  • @dhanunjay3510
    @dhanunjay3510 10 месяцев назад

    Hi @AbhishekVeeramalla: general question, Resource created by terraform (EC2), if we update something manually on EC2 will it throw any error while we execute terraform again for any other update? because manually update change will not be available in state file right?

    • @sushantvikas7125
      @sushantvikas7125 6 месяцев назад

      First of all it is not a good practice to update infrastructure manually. But if you have updated anything manually from console then you have to use terraform import command after adding the syntax in main.tf file. Once you apply import command it will update the state file with current state of infrastructure.

  • @user-pr4hp1eu7u
    @user-pr4hp1eu7u 7 месяцев назад +1

    Hi Abhi Bro, getting below exception at 22:21 after we run terraform.apply
    Error: Missing required argument

    │ on main.tf line 13, in module "ec2_instance":
    │ 13: module "ec2_instance" {

    │ The argument "instance" is required, but no definition was found.


    │ Error: Unsupported argument

    │ on main.tf line 16, in module "ec2_instance":
    │ 16: instance_type = var.instance_type

    │ An argument named "instance_type" is not expected here.
    I am using the same code as mentioned in the video. Please suggest.

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  7 месяцев назад

      What is your terraform version ? Did you watch previous episodes ? Are those demos working for you ?

  • @vineethkyatham536
    @vineethkyatham536 10 месяцев назад

    Thanks Abhishek, can we expect variable types and usage, and functions in this course?

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад

      we will cover, like today we covered map, previously we covered string and bool.

  • @dipk.mishra
    @dipk.mishra 9 месяцев назад +1

    how do manage different configurations in prod in case we have multiple clients in prod and for every client the config is different.. lets say in prod I have pepsi, lays, dell etc and there instance type is t2.micro,t2.medium, t3.medium and m type machines etc.

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  9 месяцев назад

      You dont maintain same terraform scripts for all the clients.
      You can use modules but repos should be different

    • @dipk.mishra
      @dipk.mishra 9 месяцев назад

      Okay.. Got it. Thank you.

  • @sravani294
    @sravani294 Месяц назад

    Hi Abhishek, can we create terraform code for already created resources, it was one interview question

  • @prakmyl
    @prakmyl 10 месяцев назад +1

    Hope you are ok now . Take care and take rest

  • @hussainshaik2673
    @hussainshaik2673 10 месяцев назад +1

    bro similar to branch staragy (like dev, uat, prod) please correct me if iam wrong...

  • @manid2900
    @manid2900 10 месяцев назад

    Anna in terraform workspaces how to write terraform remote statefile configurations because we are deploying different environments like dev,stage and prod and then how to track all this environments changes in S3 bucket?

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад +1

      Just write the backend.tf as I explained in previous video and try. You will get it working

    • @manid2900
      @manid2900 10 месяцев назад

      @@AbhishekVeeramalla if we deploy different environments in that case also it will create only one remote statefile right?

  • @subrahmanyamrameswarapu8995
    @subrahmanyamrameswarapu8995 6 месяцев назад +1

    Hi Abhishek bro,
    I have a doubt here. You have done everything with local(terraform.tfstate) file. But my doubt is, Will it work for the same Remote Backend(aws-s3,azure-storageaccount) also[i mean saving statefiles individually in remotely also or not]? Hope you will reply for it.
    Thanks.

  • @Rathodrohith
    @Rathodrohith 10 месяцев назад +2

    Why should we use terraform workspace when we can just copy paste the skeleton code of creating an instance into three different folders with different instance types...it will work same as workspace it self right?
    Edit: Get well soon!!

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад +2

      What if you have 10 environments and 100 teams .. you will end up creating so many folders.
      And lets say in future .. u need to make a simple change .. u need to update that n number of folders

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад +1

      I have explained all this in detail in the video. Pls check

    • @Rathodrohith
      @Rathodrohith 10 месяцев назад

      Yes, now it makes sense, thank you

  • @AmrutaWagh-kb3yv
    @AmrutaWagh-kb3yv 10 месяцев назад +2

    just waiting n you are here

  • @balaji1208Local
    @balaji1208Local 6 месяцев назад +1

    Hi Abhishek, I got a question in an interview, how do you know if there is any change in the infra without change in state file and how do you fix it.
    Waiting for your response.

  • @gantaindrasenareddy9518
    @gantaindrasenareddy9518 7 месяцев назад

    Hi Sir,
    At last, we have deleted the .tfvars file where we have stored AMI value and Instance_type value. But we have used a map and lookup for that instance_type and what about that AMI id? We didn't provide any hard coded value for AMI at last. How will terraform come to know about AMI value?

  • @Geekgurlcode
    @Geekgurlcode 9 месяцев назад

    Hi Abhishek, along woth HArshas resume, can you share some more resumes?

  • @user-lp8jc6no9j
    @user-lp8jc6no9j 10 месяцев назад

    Abhishek... Upload the last video of Terraform

  • @nithinprabhakar6583
    @nithinprabhakar6583 Месяц назад

    300K!!!!!!!!!!!!

  • @srihari1366
    @srihari1366 10 месяцев назад

    waiting for eks cluster creation using terraform

  • @samuelopoku-acheampong5601
    @samuelopoku-acheampong5601 21 день назад

    Your Selflessness

  • @brijalsingh8658
    @brijalsingh8658 10 месяцев назад +1

    One request as we can't come to hyderabad.. So i request u to plz record that meet up and session it will be helpful for others

  • @gowrinathbabu
    @gowrinathbabu 10 месяцев назад

    you are always teaching only very simple concepts here u created directly ec2 but bfore that we need vpc, subnets , routables ,subnets association these are the basic components so we need these componets to create for multiple environments

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад

      Please watch all the episodes in order. We covered that already in day 2.
      Here the concept is to understand environments.

  • @prayaspatel6325
    @prayaspatel6325 4 месяца назад

    at 34:37
    terraform apply -var-file="dev.tfvars"
    terraform apply -var-file="prod.tfvars"

  • @muralikm5398
    @muralikm5398 10 месяцев назад

    Hi Abhishek bro naa LinkedIn invitation ni accept chei bro waiting for past 1 .5 month onwards kindly accept my connection bro

    • @AbhishekVeeramalla
      @AbhishekVeeramalla  10 месяцев назад

      Already accepted

    • @muralikm5398
      @muralikm5398 10 месяцев назад

      @@AbhishekVeeramalla ledu Abhishek Anna adi old di hack aindi acc kindly check in LinkedIn comments also I messaged thee

    • @muralikm5398
      @muralikm5398 10 месяцев назад

      @@AbhishekVeeramalla adi hack aindi kabbatte neeki nenu malli request cheyalsi vachindi