mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-24 20:01:17 -04:00
Small tweaks on the guidelines and the scripts for testing the azure backend (#3603)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
@@ -86,7 +86,7 @@ $ GOOS=linux GOARCH=amd64 go test -c .
|
||||
This will generate an `azure.test` file. Send this to your VM:
|
||||
|
||||
```bash
|
||||
$ scp azure.test azureadmin@xxx.xxx.xxx.xxx:
|
||||
$ scp azure.test azureadmin@xxx.xxx.xxx.xxx:/home/azureadmin
|
||||
```
|
||||
|
||||
Now, SSH into your VM:
|
||||
|
||||
@@ -66,7 +66,7 @@ resource "azurerm_kubernetes_cluster" "main" {
|
||||
|
||||
default_node_pool {
|
||||
name = "agentpool"
|
||||
vm_size = "Standard_D2_v2"
|
||||
vm_size = "standard_d8_v3" // if it doesn't work, try "Standard_D2_v2". This is dependent on the availability in the Azure account.
|
||||
node_count = 1
|
||||
upgrade_settings {
|
||||
max_surge = "10%"
|
||||
|
||||
@@ -15,7 +15,7 @@ resource "azuread_service_principal" "tf_principal" {
|
||||
# Role assignment, so that this can do anything in our tests.
|
||||
resource "azurerm_role_assignment" "account_admin" {
|
||||
scope = "/subscriptions/${data.azurerm_client_config.current.subscription_id}"
|
||||
role_definition_name = "Storage Account Contributor"
|
||||
role_definition_name = "Contributor"
|
||||
principal_id = azuread_service_principal.tf_principal.object_id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user