From 897b6b647eb932866e5a2d7867f496ec927b4afb Mon Sep 17 00:00:00 2001 From: Cari Albritton Date: Wed, 4 Oct 2023 08:09:29 -0400 Subject: [PATCH] Update variable name, add required provider, and remove quotes Signed-off-by: Cari Albritton --- examples/env_with_dxe/main.tf | 9 ++++++++- examples/env_with_dxe/variables.tf | 26 +++++++++++++------------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/examples/env_with_dxe/main.tf b/examples/env_with_dxe/main.tf index b85f5b5..8a5b3fc 100644 --- a/examples/env_with_dxe/main.tf +++ b/examples/env_with_dxe/main.tf @@ -2,6 +2,13 @@ This creates suite of environments using all available environment types and consensus methods. */ +terraform { + required_providers { + kaleido = { + source = "kaleido-io/kaleido" + } + } +} provider "kaleido" { api = "https://console${var.kaleido_region}.kaleido.io/api/v1" @@ -33,7 +40,7 @@ resource "kaleido_environment" "env" { consortium_id = "${kaleido_consortium.consortium.id}" multi_region = "${var.multi_region}" name = "${var.env_name}" - env_type = "${var.provider}" + env_type = "${var.provider_type}" consensus_type = "${var.consensus}" description = "${var.env_description}" } diff --git a/examples/env_with_dxe/variables.tf b/examples/env_with_dxe/variables.tf index 6a4f145..820964b 100644 --- a/examples/env_with_dxe/variables.tf +++ b/examples/env_with_dxe/variables.tf @@ -1,65 +1,65 @@ variable "kaleido_api_key" { - type = "string" + type = string description = "Kaleido API Key" } variable "kaleido_region" { - type = "string" + type = string description = "Can be '-ap' for Sydney, or '-eu' for Frankfurt. Defaults to US" default = "" } -variable "provider" { - type = "string" +variable "provider_type" { + type = string default = "pantheon" description = "Protocol implementation to deploy." } variable "consensus" { - type = "string" + type = string default = "ibft" description = "Consensus mechanism." } variable "multi_region" { - type = "string" + type = string default = true description = "Make the environment multi-region compatible to support additional regions, now or in the future" } variable "node_size" { - type = "string" + type = string default = "small" description = "Size of the node" } variable "node_count" { - type = "string" + type = string default = 4 description = "Count of nodes to create - each will have its own membership" } variable "service_count" { - type = "string" + type = string default = 1 description = "Count of services to create - each will have its own membership" } variable "consortium_name" { - type = "string" + type = string default = "My Business Network" } variable "env_name" { - type = "string" + type = string default = "Development" } variable "env_description" { - type = "string" + type = string default = "Created with Terraform" } variable "network_description" { - type = "string" + type = string default = "Modern Business Network - Built on Kaleido" }