How to Store Terraform State File In AWS | DevOps Real Time Scenarios | Terraform State File S3

How to Store Terraform State File In AWS | DevOps Real Time Scenarios | Terraform State File S3
Hey Folks,
Welcome back to another video in the series of DevOps Real Time Scenarios
or DevOps Real Time Issues. In today's video, we are going to talk about :
Problem Statement - Terraform state file is in local, now other devs/devops wants to use it?
What to do?
How to do it?
Solution - Migrate or store terraform state file In AWS
Process -
Step 1: Create an AWS S3 bucket
Step 2: Modify the AWS S3 bucket policy
Step 3: Create a DynamoDB table
Step 4: Configure Terraform to point to this backend
Step-5: Initialize Terraform
Step-6: Apply Terraform changes
Terraform link - developer.hashicorp.com/terra...
LogicOps Lab - / @logicopslab
LogicOps Lab - Hindi - / @logicopslabhindi
GitHub - bit.ly/3lsUjdE
Twitter - ​ / logicopslab
Instagram - bit.ly/3tJ9Jyf
Facebook - bit.ly/3ziMoVq
Like | Share | Subscribe | Follow
how to store terraform state file in aws,how to store terraform state file in azure,devops real time scenarios,aws terraform s3 bucket,terraform state file s3,terraform state file management,how to manage terraform state file,terraform state file locking,how to migrate terraform state,how to migrate terraform state file in aws,terraform s3 backend configuration,terraform s3 backend best practices,terraform s3 bucket policy,devops real time questions,terraform,aws

Пікірлер: 18

  • @akashzakde8160
    @akashzakde81603 ай бұрын

    Awesome ...Thank you so much Ravish 🥰

  • @LogicOpsLab

    @LogicOpsLab

    3 ай бұрын

    Means a lot

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

    Was waiting for a video like this. Thanks for addressing this. Someone asked me the same questions a few months back.

  • @LogicOpsLab

    @LogicOpsLab

    Жыл бұрын

    Cheers!

  • @makecareerspls8634

    @makecareerspls8634

    Жыл бұрын

    @@LogicOpsLab assumption vs real tasks ========================================== ye 3 common vedios mandatory hai vedio 1 networking in devops topics usage azure actiev directory in authentication , bastion host and jump server , ipv4 and 6 , subnetting for 20 minutues , basic routing und route table , what is cidr , 0.000/? what is vpn , load balancer ingress egress , servoce mesh , fluen d operator , how find hops , how check ps command , networking linux , how we harden a server , why we use directconnect , why we fix proxy server before main server whats proxy ? why reverse proxy why azure active directory why sar command why profiling in linux ? watch devops bus and gocloudarchitects youtube and website properly these all topics cover depth ? azure active directory kese lagti hai in authentication? ==================================================================================================== vedio 2 ALL COMMON CLOUD CONCEPTS ONE VEDIO SERRIES , IDEA IS YOU SHOULD TEAHC MULTICLOUD PROJECTS IN CLASSES ON DIFFERENT BUILD , YES 5 BUILD 5 POC 2 HOURS EACH =10 HOURS WHATS PROBLEM , THIS COMMON VEDIO KZread THERE , U USE AZURE OR AWS SHOULD NOT MATTER WHEN WATCHED : AGENDA COMMON CLOUD CONCEPTS OF DAILY USE AND U CAN USE BEST EXAMPLE OF SERVICES BOTH CLOUD , WHO USES SINGLE CLOUD TODAY OR DEPNDENT ON SINGLE CLOUD SINGHAM? SHALL I DEPEND MY ALL COST AWS? OR I ONLYKNOW MAVEN AND PYTHON DEPLOYMNET , WILL I NOT BE FORCED ONE DAY DEPLOY MERN? SO TOP 7-8 BUIDS COVERED DEVSECOPS IMPLEMENTED IN LAST EACH PROJECT =============================================================================== VEDIO 3 VERY SIMPLE LINUX AND SHELL CONCEPTS FOR DEVOPS NOW COMMON COMANDS ALL KNOW OK COVER 1 HARDENING 2 AWK COMMAND PROPERLY 3 SAR 4 NETWORKING AND HOW WE FIX SEVERAL LINUX COMMANDS ON SHELL OK , WILL U USE ONE ONE RSYNC OR CRON OR RATHER SHELL OF 4-5 CRON TAB COMMANDS ===================================================================================================================================== actual tasks in real exactly work kha? 1 migration karo 2 design implement multicloud yes cost obviously 3 devsecops lagao sare 8 build kitne projects ? 8 build * 2 hours =20 man lo secops k8 inpe hi lagega same . migration 4 * 2= 8 hours 2 aws 2 azure project way smjaya = 60 hours max only for project total course bnata hi 120 hour ka , agar koi 50 hour prha raha ullu banata hai======= =========================================================================================================== real tasks COURSE EFFORT STILL 120 HOURS PLAN TO KARO , TEACH KRO PROJECTS WAY DIRECT 3 VEDIO KZread M DAL KE har koi yhi puchega likhwa lo 1 grill krega kub and coker p ok ab to docker support khtm bhai redhat podman ok 2 multicloud architecture bnao meri prob solve kro wo ek cloud s nahi hogi likhwa lo 3 bnao arctecture muticloud ka , 10% yhi rakhunga mere server p bas 80% jayga wo bhi mulyicloud p aws azure p 4 sara kuberntes mai cloud service dalunga gke p cost hai na aws kha ra meko hack bhi hojata daily russian hack krke meri oil pipleine bjate hai in aws yes truth for america 5 pulumi lgao chalo , data nalytics makya kroo achar dalu i am devops so need pulumi lambda and serverless in python 2 class deni hi hai to 6 sirf java k liye nahi rakha tumko chalo lag jao msbuild kro chupchap se, kal mern karoge deploy prso gradle kroge , kro poc nahi pta , nosql dal do 3 env p production staging dev p , no sql chhie mere developer p 7 lgao bastion host jump server ingress egreess service mesh p , traffic jyda hai sir ecmmerce , accha singham course k aaeo ho , poc kro and do 8 dockr gya bhai podman seeko ok do poc docker supprot stops , cost report do ebs volume ki, kon sa calculator , subnetting ye sab hum sikhae? where is networking? ulte seedhi route table lag rakhi no idea security secops, sara accounts jo 5-6 admin etc wo sab azure active directory p hai hona chhie cloud based azure active directry use kro poc me ========================================================================================================

  • @makecareerspls8634

    @makecareerspls8634

    Жыл бұрын

    @@LogicOpsLab awk and sar add kr linux me

  • @kodellibose1096
    @kodellibose109610 ай бұрын

    It's very helpful bro..❤

  • @LogicOpsLab

    @LogicOpsLab

    10 ай бұрын

    Glad you liked it

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

    Thank You For the Video But We Want More Like this Type of Scenario Question and Its Solution

  • @LogicOpsLab

    @LogicOpsLab

    Жыл бұрын

    Sure thing. Will post more like this.

  • @makecareerspls8634

    @makecareerspls8634

    Жыл бұрын

    @@LogicOpsLab assumption vs real tasks ========================================== ye 3 common vedios mandatory hai vedio 1 networking in devops topics usage azure actiev directory in authentication , bastion host and jump server , ipv4 and 6 , subnetting for 20 minutues , basic routing und route table , what is cidr , 0.000/? what is vpn , load balancer ingress egress , servoce mesh , fluen d operator , how find hops , how check ps command , networking linux , how we harden a server , why we use directconnect , why we fix proxy server before main server whats proxy ? why reverse proxy why azure active directory why sar command why profiling in linux ? watch devops bus and gocloudarchitects youtube and website properly these all topics cover depth ? azure active directory kese lagti hai in authentication? ==================================================================================================== vedio 2 ALL COMMON CLOUD CONCEPTS ONE VEDIO SERRIES , IDEA IS YOU SHOULD TEAHC MULTICLOUD PROJECTS IN CLASSES ON DIFFERENT BUILD , YES 5 BUILD 5 POC 2 HOURS EACH =10 HOURS WHATS PROBLEM , THIS COMMON VEDIO KZread THERE , U USE AZURE OR AWS SHOULD NOT MATTER WHEN WATCHED : AGENDA COMMON CLOUD CONCEPTS OF DAILY USE AND U CAN USE BEST EXAMPLE OF SERVICES BOTH CLOUD , WHO USES SINGLE CLOUD TODAY OR DEPNDENT ON SINGLE CLOUD SINGHAM? SHALL I DEPEND MY ALL COST AWS? OR I ONLYKNOW MAVEN AND PYTHON DEPLOYMNET , WILL I NOT BE FORCED ONE DAY DEPLOY MERN? SO TOP 7-8 BUIDS COVERED DEVSECOPS IMPLEMENTED IN LAST EACH PROJECT =============================================================================== VEDIO 3 VERY SIMPLE LINUX AND SHELL CONCEPTS FOR DEVOPS NOW COMMON COMANDS ALL KNOW OK COVER 1 HARDENING 2 AWK COMMAND PROPERLY 3 SAR 4 NETWORKING AND HOW WE FIX SEVERAL LINUX COMMANDS ON SHELL OK , WILL U USE ONE ONE RSYNC OR CRON OR RATHER SHELL OF 4-5 CRON TAB COMMANDS ===================================================================================================================================== actual tasks in real exactly work kha? 1 migration karo 2 design implement multicloud yes cost obviously 3 devsecops lagao sare 8 build kitne projects ? 8 build * 2 hours =20 man lo secops k8 inpe hi lagega same . migration 4 * 2= 8 hours 2 aws 2 azure project way smjaya = 60 hours max only for project total course bnata hi 120 hour ka , agar koi 50 hour prha raha ullu banata hai======= =========================================================================================================== real tasks COURSE EFFORT STILL 120 HOURS PLAN TO KARO , TEACH KRO PROJECTS WAY DIRECT 3 VEDIO KZread M DAL KE har koi yhi puchega likhwa lo 1 grill krega kub and coker p ok ab to docker support khtm bhai redhat podman ok 2 multicloud architecture bnao meri prob solve kro wo ek cloud s nahi hogi likhwa lo 3 bnao arctecture muticloud ka , 10% yhi rakhunga mere server p bas 80% jayga wo bhi mulyicloud p aws azure p 4 sara kuberntes mai cloud service dalunga gke p cost hai na aws kha ra meko hack bhi hojata daily russian hack krke meri oil pipleine bjate hai in aws yes truth for america 5 pulumi lgao chalo , data nalytics makya kroo achar dalu i am devops so need pulumi lambda and serverless in python 2 class deni hi hai to 6 sirf java k liye nahi rakha tumko chalo lag jao msbuild kro chupchap se, kal mern karoge deploy prso gradle kroge , kro poc nahi pta , nosql dal do 3 env p production staging dev p , no sql chhie mere developer p 7 lgao bastion host jump server ingress egreess service mesh p , traffic jyda hai sir ecmmerce , accha singham course k aaeo ho , poc kro and do 8 dockr gya bhai podman seeko ok do poc docker supprot stops , cost report do ebs volume ki, kon sa calculator , subnetting ye sab hum sikhae? where is networking? ulte seedhi route table lag rakhi no idea security secops, sara accounts jo 5-6 admin etc wo sab azure active directory p hai hona chhie cloud based azure active directry use kro poc me ========================================================================================================

  • @Allenrkiou
    @Allenrkiou11 ай бұрын

    Thanks for this amazing demonstration, wanted to ask a more generalized question for DevOps. I want to fill in my knowledge gap that I have in terms of networking and I have O'Rilley/LinkedinLearn/KZread as resources, do you have anything that you can advise for me to start with?

  • @LogicOpsLab

    @LogicOpsLab

    10 ай бұрын

    I do not have anything handy, as of now. But, will work on something like this, thanks!

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

    Hi , In real time devops team will create s3 bucket nd all , do they have access to aws console/ cloud admins will create it ,also if there are any change in state file it will get automatically updated in bucket or we have to manually push the changes from local to bucket ?

  • @LogicOpsLab

    @LogicOpsLab

    Жыл бұрын

    As a DevOps, it's our responsibility to create the infrastructure, thus we have admin access to create it. For state file, the ideal scenario is to get it updated automatically. No one should manually go and update the state file in S3 bucket.

  • @amulyareddi

    @amulyareddi

    Жыл бұрын

    @@LogicOpsLab Thank You.

  • @isi24.8
    @isi24.810 ай бұрын

    Well explianed.. But I still didn't get the role dynamodb

  • @LogicOpsLab

    @LogicOpsLab

    10 ай бұрын

    Thank you. To answer your query, when using Terraform to manage the infrastructure on AWS, Terraform requires a backend to store its state information. This state information includes the current state of your infrastructure resources, such as the resources that have been created, updated, or destroyed. This state is crucial for Terraform to accurately plan and apply changes to your infrastructure. Amazon DynamoDB is often used as a backend for storing Terraform state files when working with Terraform on AWS. The role of DynamoDB in this context is to provide a locking mechanism and a durable storage solution for the Terraform state files. By utilizing DynamoDB as the backend for storing Terraform state, you ensure that your infrastructure management remains reliable, scalable, and consistent across team members or processes.

Келесі