Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to replace the provider source in Terraform state.
Terraform
terraform state replace-provider [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of old and new providers
Using incorrect provider source names
Omitting quotes around provider addresses
✗ Incorrect
The command replaces the AWS provider with the AzureRM provider in the Terraform state.
2fill in blank
mediumComplete the command to replace the provider source from AWS to Google Cloud in Terraform state.
Terraform
terraform state replace-provider [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Reversing the old and new provider order
Using incomplete provider names
Forgetting to quote the provider addresses
✗ Incorrect
The command replaces the AWS provider with the Google Cloud provider in the Terraform state.
3fill in blank
hardFix the error in the command to replace the provider source from AzureRM to AWS in Terraform state.
Terraform
terraform state replace-provider [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping old and new providers
Using wrong provider source names
✗ Incorrect
The correct command replaces the AzureRM provider with the AWS provider, so AzureRM is the old provider and AWS is the new provider.
4fill in blank
hardFill both blanks to replace the provider source from AWS to AzureRM in Terraform state and confirm the action.
Terraform
terraform state replace-provider [1] [2] -auto-approve
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong provider order
Confusing -force with -auto-approve
Omitting quotes around provider names
✗ Incorrect
The command replaces AWS with AzureRM provider and uses -auto-approve to skip confirmation.
5fill in blank
hardFill all three blanks to replace the provider source from Google to AWS in Terraform state, force the action (skip confirmation).
Terraform
terraform state replace-provider [1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up old and new providers
Using -verbose instead of -auto-approve to skip confirmation
Omitting quotes around provider names
✗ Incorrect
The command replaces the Google provider with the AWS provider in the Terraform state, using -auto-approve to skip confirmation.