Difference between revisions of ".terraform.lock.hcl"
Jump to navigation
Jump to search
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | https://www.terraform.io/language/files/dependency-lock | |
+ | .terraform.lock[[.hcl]] | ||
+ | [[.terraform/]] | ||
+ | |||
+ | .../... Include this file in your version control repository so that Terraform can guarantee to make the same selections by default when you run "terraform init" in the future .../... | ||
+ | |||
+ | == Example == | ||
+ | |||
+ | [[terraform init]] | ||
+ | <pre> | ||
+ | Initializing the backend... | ||
+ | |||
+ | Initializing provider plugins... | ||
+ | - Finding latest version of hashicorp/aws... | ||
+ | - Installing hashicorp/aws v4.19.0... | ||
+ | - Installed hashicorp/aws v4.19.0 (signed by HashiCorp) | ||
+ | |||
+ | Terraform has created a lock file [[.terraform.lock.hcl]] to record the provider | ||
+ | selections it made above. Include this file in your version control repository | ||
+ | so that Terraform can guarantee to make the same selections by default when | ||
+ | you run "terraform init" in the future. | ||
+ | |||
+ | Terraform has been successfully initialized! | ||
+ | |||
+ | You may now begin working with Terraform. Try running "terraform plan" to see | ||
+ | any changes that are required for your infrastructure. All Terraform commands | ||
+ | should now work. | ||
+ | |||
+ | If you ever set or change modules or backend configuration for Terraform, | ||
+ | rerun this command to reinitialize your working directory. If you forget, other | ||
+ | commands will detect it and remind you to do so if necessary. | ||
+ | </pre> | ||
== Related == | == Related == | ||
* <code>[[terraform.tfstate]]</code> | * <code>[[terraform.tfstate]]</code> | ||
* [[Terraform Associate cheatsheet]] | * [[Terraform Associate cheatsheet]] | ||
+ | * <code>[[.terraform/]]</code> | ||
==See also== | ==See also== | ||
+ | * {{terraform init}} | ||
* {{tf files}} | * {{tf files}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 14:58, 8 January 2024
https://www.terraform.io/language/files/dependency-lock
.terraform.lock.hcl .terraform/
.../... Include this file in your version control repository so that Terraform can guarantee to make the same selections by default when you run "terraform init" in the future .../...
Example[edit]
terraform init
Initializing the backend... Initializing provider plugins... - Finding latest version of hashicorp/aws... - Installing hashicorp/aws v4.19.0... - Installed hashicorp/aws v4.19.0 (signed by HashiCorp) Terraform has created a lock file [[.terraform.lock.hcl]] to record the provider selections it made above. Include this file in your version control repository so that Terraform can guarantee to make the same selections by default when you run "terraform init" in the future. Terraform has been successfully initialized! You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work. If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary.
Related[edit]
See also[edit]
terraform init
[-upgrade | -reconfigure | -backend-config | -get-plugins=false | -verify-plugins=false ]
,--help
, Execution examples, Execution with errors,~/.terraformrc, required_providers
- Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
Advertising: