Learn in 20 min terraform state file & terraform Import existing Infrastructure
terraform #terraform
Terraform State file #statefile
Terraform Importing existing Infrastructure #import
Terraform State file & Terraform Importing existing Infrastructure
What happens if we delete resource from Terraform state file ? ..
How to bring back infrastructure resources into terraform state file which was created manually by using terraform import command
terraform import aws_instance.ec2-2 i-0f16879c27a19a86e ( this is ec2 instance )
terraform import aws_ebs_volume.ebs vol-06ac98a7a0f1ba211 ( This is EBS volume resource )
www.terraform.io/docs/command...
www.terraform.io/docs/state/i...
Terraform keep state file remotely in S3
• Terraform AWS - terraf...
GitHub terraform code url
github.com/sbrTechWorld/aws-t...
Пікірлер: 22
Super explanation ❤❤
Thank You sir !!
very good explanation....
Very good, Thanks.
It's very helpful...
terraform import very nice , thanks for uploading
@sbrtechworld2570
3 жыл бұрын
Thanks
Excellent
Nice explanation
@sbrtechworld2570
3 жыл бұрын
Thank you
Really nice explanation but is there is way to import the resources in bulk or all associated resources.
i think if we run 'terraform output refresh' , it will create state file by importing details from AWS console right.
How to import aws_vpc_endpoint.ec2 Do we have to provide endpoint or instance id?
Hi, Very Nice explanation. Can you tell me when we manually delete the vm from AWS or Azure portal which is provisioned through terraform instead of deleting it from the tfstate file then what will happen to the tfstate file.
@lavanya5
3 жыл бұрын
Terraform, having detected that the resource specified in the configuration no longer exists, will create a new instance of it with the values specified in the configuration
@theacevj2572
3 жыл бұрын
In simple terms, the state file is the current state of the infra and the tf files have the desired state, when we do a terraform plan it fetches the current state and compares with desired state mentioned in tf files and then if changes detected it will make changes...
After import existing environment to local how to export to another region
@davianjabari6697
2 жыл бұрын
i realize I'm kinda off topic but do anybody know of a good website to watch new series online ?
@luciangrayson2517
2 жыл бұрын
@Davian Jabari Flixportal =)
@davianjabari6697
2 жыл бұрын
@Lucian Grayson thanks, signed up and it seems like they got a lot of movies there =) I appreciate it !
@luciangrayson2517
2 жыл бұрын
@Davian Jabari Happy to help :)
Totally confused man