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
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the
following symbols:
~ update in-place
Terraform will perform the following actions:
# azurerm_virtual_network_gateway_connection.CONN-A will be updated in-place
~ resource "azurerm_virtual_network_gateway_connection" "CONN-A" {
id = "/subscriptions/XXXXXXXXXXXXX/resourceGroups/myrg/providers/Microsoft.Network/connections/CONN-A"
name = "CONN-A"
# Warning: this attribute value will no longer be marked as sensitive
# after applying this change
~ shared_key = (sensitive value)
tags = {
"environment" = "MY"
"resourceType" = "MYVPN"
}
# (12 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_virtual_network_gateway_connection.CONN-A: Modifying... [id=/XXXXXXXXXXXXX/resourceGroups/myrg/providers/Microsoft.Network/connections/CONN-A]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 10s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 20s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 30s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 40s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Modifications complete after 43s [id=/subscriptions/XXXXXXXXXXXXX/resourceGroups/myrg/providers/Microsoft.Network/connections/CONN-A]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Shared key is not updated, even terraform says Apply complete!, if I reapeat terraform apply, terraform still want to update it:
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the
following symbols:
~ update in-place
Terraform will perform the following actions:
# azurerm_virtual_network_gateway_connection.CONN-A will be updated in-place
~ resource "azurerm_virtual_network_gateway_connection" "CONN-A" {
id = "/subscriptions/XXXXXXXXXXXXX/resourceGroups/myrg/providers/Microsoft.Network/connections/CONN-A"
name = "CONN-A"
# Warning: this attribute value will no longer be marked as sensitive
# after applying this change
~ shared_key = (sensitive value)
tags = {
"environment" = "MY"
"resourceType" = "MYVPN"
}
# (12 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
azurerm_virtual_network_gateway_connection.CONN-A: Modifying... [id=/XXXXXXXXXXXXX/resourceGroups/myrg/providers/Microsoft.Network/connections/CONN-A]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 10s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 20s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 30s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Still modifying... [id=/subscriptions/XXXXXXXXXXXXX-...k/connections/CONN-A, 40s elapsed]
azurerm_virtual_network_gateway_connection.CONN-A: Modifications complete after 43s [id=/subscriptions/XXXXXXXXXXXXX/resourceGroups/myrg/providers/Microsoft.Network/connections/CONN-A]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Expected Behaviour
Shared key for connection shoud be updated
Actual Behaviour
Shared key for connection is not updated.
Steps to Reproduce
terraform apply
Repeat terraform apply, terraform want continously update shared key, but it is not changed.
The text was updated successfully, but these errors were encountered:
andkardas
changed the title
shared_key is not updated for existing azurerm_virtual_network_gateway_connectionshared_key is not updated for existing azurerm_virtual_network_gateway_connectionMay 12, 2021
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.15.3
provider registry.terraform.io/hashicorp/azurerm v2.58.0
Affected Resource(s)
azurerm_virtual_network_gateway_connection
Terraform Configuration Files
Debug Output
Shared key is not updated, even terraform says
Apply complete!
, if I reapeatterraform apply
, terraform still want to update it:Expected Behaviour
Shared key for connection shoud be updated
Actual Behaviour
Shared key for connection is not updated.
Steps to Reproduce
terraform apply
terraform apply
, terraform want continously update shared key, but it is not changed.The text was updated successfully, but these errors were encountered: