mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
cli: force-delete Azure resource group (#1667)
* force-delete Azure resource group * were not -> weren't * fix typo
This commit is contained in:
parent
5145f806ea
commit
3031d395a9
@ -89,9 +89,9 @@ func (c *destroyCmd) iamDestroy(cmd *cobra.Command, spinner spinnerInterf, destr
|
||||
|
||||
if !flags.yes {
|
||||
// Confirmation
|
||||
confirmString := "Do you really want to destroy your IAM configuration?"
|
||||
confirmString := "Do you really want to destroy your IAM configuration? Note that this will remove all resources in the resource group."
|
||||
if gcpFileExists {
|
||||
confirmString += fmt.Sprintf(" (This will also delete %q)", constants.GCPServiceAccountKeyFile)
|
||||
confirmString += fmt.Sprintf("\nThis will also delete %q", constants.GCPServiceAccountKeyFile)
|
||||
}
|
||||
ok, err := askToConfirm(cmd, confirmString)
|
||||
if err != nil {
|
||||
|
@ -12,7 +12,11 @@ terraform {
|
||||
}
|
||||
|
||||
provider "azurerm" {
|
||||
features {}
|
||||
features {
|
||||
resource_group {
|
||||
prevent_deletion_if_contains_resources = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
locals {
|
||||
|
@ -13,7 +13,11 @@ terraform {
|
||||
|
||||
# Configure Azure resource management provider
|
||||
provider "azurerm" {
|
||||
features {}
|
||||
features {
|
||||
resource_group {
|
||||
prevent_deletion_if_contains_resources = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Configure Azure active directory provider
|
||||
|
@ -264,3 +264,8 @@ Delete the IAM configuration by executing the following command in the same dire
|
||||
```bash
|
||||
constellation iam destroy
|
||||
```
|
||||
|
||||
:::caution
|
||||
For Azure, deleting the IAM configuration by executing `constellation iam destroy` will delete the whole resource group created by `constellation iam create`.
|
||||
This also includes any additional resources in the resource group that weren't created by Constellation.
|
||||
:::
|
||||
|
Loading…
Reference in New Issue
Block a user