When upgrading a provider,you must run terraform init -upgrade to install the new version.
Thisdownloads the latest provider versionand updates the local dependency cache.
terraform refresh(A)only updates the state file but doesnotupgrade providers.
terraform apply -upgrade(C)isnot a valid command.
terraform version can be upgraded separately, but(D)does not install a new provider version.
Official Terraform Documentation Reference:
Upgrading Providers in Terraform
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit