terraform init
terraform plan
A bit confused as terraform wants to destroy some cassandra nodes.
i did pull the current state, well i tried both:
- `terraform refresh`
- `terraform state pull > terraform.tfstate`
to no avail, same result:
```
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
- destroy
Terraform will perform the following actions:
# azurerm_network_interface.cassandra-replayer-interface["cassandra-replay01"] will be destroyed
...
# azurerm_network_interface.cassandra-replayer-interface["cassandra-replay02"] will be destroyed
...
# azurerm_network_interface.cassandra-replayer-interface["cassandra-replay03"] will be destroyed
...
# azurerm_network_interface.cassandra-replayer-interface["cassandra-replay04"] will be destroyed
...
# azurerm_network_interface.storage-interface[0] will be created
+ resource "azurerm_network_interface" "storage-interface" {
+ applied_dns_servers = (known after apply)
+ dns_servers = (known after apply)
+ enable_accelerated_networking = false
+ enable_ip_forwarding = false
+ id = (known after apply)
+ internal_dns_name_label = (known after apply)
+ internal_fqdn = (known after apply)
+ location = "westeurope"
+ mac_address = (known after apply)
+ name = "storage01-euwest-if"
+ network_security_group_id = "/subscriptions/49b7f681-8efc-4689-8524-870fc0c1db09/resourceGroups/swh-resource/providers/Microsoft.Network/networkSecurityGroups/worker-nsg"
+ private_ip_address = (known after apply)
+ private_ip_addresses = (known after apply)
+ resource_group_name = "euwest-server"
+ tags = (known after apply)
+ virtual_machine_id = (known after apply)
+ ip_configuration {
+ application_gateway_backend_address_pools_ids = (known after apply)
+ application_security_group_ids = (known after apply)
+ load_balancer_backend_address_pools_ids = (known after apply)
+ load_balancer_inbound_nat_rules_ids = (known after apply)
+ name = "vaultNicConfiguration"
+ primary = (known after apply)
+ private_ip_address = (known after apply)
+ private_ip_address_allocation = "dynamic"
+ private_ip_address_version = "IPv4"
+ subnet_id = "/subscriptions/49b7f681-8efc-4689-8524-870fc0c1db09/resourceGroups/swh-resource/providers/Microsoft.Network/virtualNetworks/swh-vnet/subnets/default"
}
}
# azurerm_resource_group.euwest-cassandra-replay will be destroyed
...
# azurerm_virtual_machine.cassandra-replay-server["cassandra-replay01"] will be destroyed
...
# azurerm_virtual_machine.cassandra-replay-server["cassandra-replay02"] will be destroyed
...
# azurerm_virtual_machine.cassandra-replay-server["cassandra-replay03"] will be destroyed
...
# azurerm_virtual_machine.cassandra-replay-server["cassandra-replay04"] will be destroyed
...
# azurerm_virtual_machine.storage-server[0] will be created
+ resource "azurerm_virtual_machine" "storage-server" {
+ availability_set_id = (known after apply)
+ delete_data_disks_on_termination = false
+ delete_os_disk_on_termination = false
+ id = (known after apply)
+ license_type = (known after apply)
+ location = "westeurope"
+ name = "storage01"
+ network_interface_ids = (known after apply)
+ resource_group_name = "euwest-servers"
+ tags = {
+ "environment" = "Storage"
}
+ vm_size = "Standard_B2s"
+ boot_diagnostics {
+ enabled = true
+ storage_uri = "https://swhresourcediag966.blob.core.windows.net"
}
+ identity {
+ identity_ids = (known after apply)
+ principal_id = (known after apply)
+ type = (known after apply)
}
+ os_profile {
+ admin_username = "tmpadmin"
+ computer_name = "storage01"
+ custom_data = (known after apply)
}
+ os_profile_linux_config {
+ disable_password_authentication = true
+ ssh_keys {
+ key_data = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZarzgHrzUYspvrgSI6fszrALo92BDys7QOkJgUfZa9t9m4g7dUANNtwBiqIbqijAQPmB1zKgG6QTZC5rJkRy6KqXCW/+Qeedw/FWIbuI7jOD5WxnglbEQgvPkkB8kf1xIF7icRfWcQmK2je/3sFd9yS4/+jftNMPPXkBCxYm74onMenyllA1akA8FLyujLu6MNA1D8iLLXvz6pBDTT4GZ5/bm3vSE6Go8Xbuyu4SCtYZSHaHC2lXZ6Hhi6dbli4d3OwkUWz+YhFGaEra5Fx45Iig4UCL6kXPkvL/oSc9KGerpT//Xj9qz1K7p/IrBS8+eA4X69bHYYV0UZKDADZSn ardumont@yavin4"
+ path = "/home/tmpadmin/.ssh/authorized_keys"
}
}
+ storage_data_disk {
+ caching = "None"
+ create_option = "Empty"
+ disk_size_gb = 30720
+ lun = 1
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Standard_LRS"
+ name = "storage01-datadisk"
+ write_accelerator_enabled = false
}
+ storage_image_reference {
+ offer = "Debian"
+ publisher = "credativ"
+ sku = "10"
+ version = "latest"
}
+ storage_os_disk {
+ caching = "ReadWrite"
+ create_option = "FromImage"
+ disk_size_gb = (known after apply)
+ managed_disk_id = (known after apply)
+ managed_disk_type = "Premium_LRS"
+ name = "storage01-osdisk"
+ os_type = (known after apply)
+ write_accelerator_enabled = false
}
}
Plan: 2 to add, 0 to change, 9 to destroy.
Warning: "resource_group_name": [DEPRECATED] This field has been deprecated and is no longer used - will be removed in 2.0 of the Azure Provider
on vault.tf line 42, in resource "azurerm_storage_container" "contents":
42: resource "azurerm_storage_container" "contents" {
------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
```