Skip to content

Commit

Permalink
Update deprecated field in aws provider config, and add MKE version t…
Browse files Browse the repository at this point in the history
…o AWS and Azure (#90)

* update aws provider config to replace deprecated field

* add mke_version to aws and azure, it is required field now
  • Loading branch information
ranyodh authored Dec 2, 2022
1 parent c8b68d7 commit a79dc21
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/terraform/aws/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
provider "aws" {
region = var.aws_region
shared_credentials_file = var.aws_shared_credentials_file
shared_credentials_files = [var.aws_shared_credentials_file]
profile = var.aws_profile
}

Expand Down Expand Up @@ -122,6 +122,7 @@ locals {
kind = "mke"
spec = {
mke = {
version = var.mke_version
adminUsername = "admin"
adminPassword = var.admin_password
installFlags : [
Expand All @@ -140,6 +141,7 @@ locals {
kind = "mke+msr"
spec = {
mke = {
version = var.mke_version
adminUsername = "admin"
adminPassword = var.admin_password
installFlags : [
Expand All @@ -163,4 +165,4 @@ locals {

output "mke_cluster" {
value = yamlencode(local.launchpad_tmpl)
}
}
5 changes: 5 additions & 0 deletions examples/terraform/aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ variable "worker_volume_size" {
variable "msr_volume_size" {
default = 100
}

variable "windows_administrator_password" {
default = "w!ndozePassw0rd"
}

variable "mke_version" {
default = "3.5.5"
}
1 change: 1 addition & 0 deletions examples/terraform/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ locals {
}
spec = {
mke = {
version = var.mke_version
adminUsername = "admin"
adminPassword = var.admin_password
installFlags : [
Expand Down
4 changes: 4 additions & 0 deletions examples/terraform/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ variable "update_domain_count" {
description = "Specifies the number of update domains that are used"
default = 2
}

variable "mke_version" {
default = "3.5.5"
}
2 changes: 1 addition & 1 deletion examples/terraform/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ variable "windows_password" {
}

variable "mke_version" {
default = "3.5.2"
default = "3.5.5"
}

0 comments on commit a79dc21

Please sign in to comment.