Skip to content

DeekshithSN/AWS-Terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS-Terraform

Terraform advanced commands

  1. terraform apply -target=aws_instance.app

to create only specific resource, in terraform code where we have to many resources to be created.

  1. terraform destroy -target=aws_instance.app

to delete specific resource, we can use above command

  1. In projects terraform code will be applied using any cicd pipelines, ideally 3 stages will be there terraform init, terraform plan and terraform apply. But not many times code will be changed in such cases ideal soultion will be executing plan command and check if any changes are there if no changes then stop the pipeline.

below commands might help in that

terraform plan -out=tfplan
terraform show -json tfplan | jq .resource_changes[].change.actions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages