Last active
November 18, 2021 04:06
-
-
Save kwilczynski/24f73ce21379150719ba2dcaaeac90e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat > main.tf | |
provider "null" { | |
version = "2.1.1" | |
} | |
^D | |
$ terraform init | |
Initializing the backend... | |
Initializing provider plugins... | |
- Finding hashicorp/null versions matching "2.1.1"... | |
- Installing hashicorp/null v2.1.1... | |
- Installed hashicorp/null v2.1.1 (signed by HashiCorp) | |
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. | |
$ cat > main.tf | |
provider "null" { | |
version = "9.9.9" | |
} | |
^D | |
$ terraform apply -auto-approve | |
Apply complete! Resources: 0 added, 0 changed, 0 destroyed. | |
$ terraform -version | |
Terraform v0.13.0 | |
+ provider registry.terraform.io/hashicorp/null v2.1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir v{1,2} | |
$ touch v{1,2}/main.tf | |
$ cat > main.tf | |
module "test" { | |
source = "./v1" | |
} | |
^D | |
$ terraform init | |
Initializing modules... | |
- test in v1 | |
Initializing the backend... | |
Initializing provider plugins... | |
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. | |
$ cat > main.tf | |
module "test" { | |
source = "./v2" | |
} | |
^D | |
$ terraform apply -auto-approve | |
Error: Module source has changed | |
on main.tf line 2, in module "test": | |
2: source = "./v2" | |
The source address was changed since this module was installed. Run "terraform | |
init" to install all modules required by this configuration. | |
$ terraform init | |
Initializing modules... | |
- test in v2 | |
Initializing the backend... | |
Initializing provider plugins... | |
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. | |
$ terraform --version | |
Terraform v0.13.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat > main.tf | |
provider "null" { | |
version = "2.1.1" | |
} | |
^D | |
$ terraform init | |
Initializing the backend... | |
Initializing provider plugins... | |
- Checking for available provider plugins... | |
- Downloading plugin for provider "null" (hashicorp/null) 2.1.1... | |
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. | |
$ cat > main.tf | |
provider "null" { | |
version = "9.9.9" | |
} | |
^D | |
$ terraform apply -auto-approve | |
Error: Could not satisfy plugin requirements | |
Plugin reinitialization required. Please run "terraform init". | |
Plugins are external binaries that Terraform uses to access and manipulate | |
resources. The configuration provided requires plugins which can't be located, | |
don't satisfy the version constraints, or are otherwise incompatible. | |
Terraform automatically discovers provider requirements from your | |
configuration, including providers used in child modules. To see the | |
requirements and constraints from each module, run "terraform providers". | |
Error: provider.null: no suitable version installed | |
version requirements: "9.9.9" | |
versions installed: "2.1.1" | |
$ terraform --version | |
Terraform v0.12.28 | |
+ provider.null v2.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment