You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"azurerm_storage_account""storeaccount" {
#the old way of doing stuff#I keep this for backward compatibilityaccount_type="Standard_GRS"#the new way of doing stuffaccount_tier="Standard"account_replication_type="GRS"
}
Expected Behavior
terraform plan [DIR] works with or without [DIR] or modules
Actual Behavior
Using cd /terraform/module1; terraform plan I get a warning (which is expected)
* module.module1.azurerm_storage_account.storeaccount: "account_type": [DEPRECATED]
This field has been split into `acount_tier` and `account_replication_type`
Using cd /terraform; terraform plan module1 I get an error which states exactly the opposite of the warning above
2 error(s) occurred:
* module.module1.azurerm_storage_account.storeaccount: : invalid or unknown key: account_replication_type
* module.module1.azurerm_storage_account.storeaccount: : invalid or unknown key: account_tier
@DonEstefan I wonder if you have a version mismatch of the locally-stored modules in the .terraform directory? So in one module, you're using the new version where the variable is deprecated and in the other you're using one where the new variables don't exist? Try terraform init maybe?
Thanks for the hint!
We use modules and subdirectories to separate parts of our environment. Due to hashicorp/terraform#15447 I have to change directories before tainting resources. I did not realize that this makes me use a separate copy of the azurerm provider in the sub-folder. After updating the second provider copy everything was smooth again...
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked and limited conversation to collaborators
Apr 1, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Affected Resource(s)
azurerm_storage_account:
Terraform Configuration Files
Expected Behavior
terraform plan [DIR]
works with or without [DIR] or modulesActual Behavior
Using
cd /terraform/module1; terraform plan
I get a warning (which is expected)Using
cd /terraform; terraform plan module1
I get an error which states exactly the opposite of the warning aboveReferences
maybe #437 ?!?
The text was updated successfully, but these errors were encountered: