Skip to content

Commit

Permalink
update azure example
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Apr 17, 2024
1 parent e4be245 commit d18b6e4
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions example/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ provider "plural" {
use_cli = true
}

resource "plural_provider" "azure_provider" {
name = "azure"
cloud = "azure"
cloud_settings = {
azure = {
# subscription_id = "" # Required, can be sourced from PLURAL_AZURE_SUBSCRIPTION_ID
# tenant_id = "" # Required, can be sourced from PLURAL_AZURE_TENANT_ID
# client_id = "" # Required, can be sourced from PLURAL_AZURE_CLIENT_ID
# client_secret = "" # Required, can be sourced from PLURAL_AZURE_CLIENT_SECRET
}
}
}
#resource "plural_provider" "azure_provider" {
# name = "azure"
# cloud = "azure"
# cloud_settings = {
# azure = {
# # subscription_id = "" # Required, can be sourced from PLURAL_AZURE_SUBSCRIPTION_ID
# # tenant_id = "" # Required, can be sourced from PLURAL_AZURE_TENANT_ID
# # client_id = "" # Required, can be sourced from PLURAL_AZURE_CLIENT_ID
# # client_secret = "" # Required, can be sourced from PLURAL_AZURE_CLIENT_SECRET
# }
# }
#}

data "plural_provider" "azure_provider" {
cloud = "aws"
cloud = "azure"
}

resource "plural_cluster" "azure_cluster" {
Expand All @@ -43,6 +43,13 @@ resource "plural_cluster" "azure_cluster" {
location = "eastus"
}
}
metadata = jsonencode({
test1 = "test"
test2 = false
test3 = jsonencode({
abc = false
})
})
tags = {
"managed-by" = "terraform-provider-plural"
}
Expand Down

0 comments on commit d18b6e4

Please sign in to comment.