Skip to content

Commit a79dc21

Browse files
authored
Update deprecated field in aws provider config, and add MKE version to AWS and Azure (#90)
* update aws provider config to replace deprecated field * add mke_version to aws and azure, it is required field now
1 parent c8b68d7 commit a79dc21

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed

examples/terraform/aws/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
provider "aws" {
22
region = var.aws_region
3-
shared_credentials_file = var.aws_shared_credentials_file
3+
shared_credentials_files = [var.aws_shared_credentials_file]
44
profile = var.aws_profile
55
}
66

@@ -122,6 +122,7 @@ locals {
122122
kind = "mke"
123123
spec = {
124124
mke = {
125+
version = var.mke_version
125126
adminUsername = "admin"
126127
adminPassword = var.admin_password
127128
installFlags : [
@@ -140,6 +141,7 @@ locals {
140141
kind = "mke+msr"
141142
spec = {
142143
mke = {
144+
version = var.mke_version
143145
adminUsername = "admin"
144146
adminPassword = var.admin_password
145147
installFlags : [
@@ -163,4 +165,4 @@ locals {
163165

164166
output "mke_cluster" {
165167
value = yamlencode(local.launchpad_tmpl)
166-
}
168+
}

examples/terraform/aws/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ variable "worker_volume_size" {
6161
variable "msr_volume_size" {
6262
default = 100
6363
}
64+
6465
variable "windows_administrator_password" {
6566
default = "w!ndozePassw0rd"
6667
}
68+
69+
variable "mke_version" {
70+
default = "3.5.5"
71+
}

examples/terraform/azure/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ locals {
120120
}
121121
spec = {
122122
mke = {
123+
version = var.mke_version
123124
adminUsername = "admin"
124125
adminPassword = var.admin_password
125126
installFlags : [

examples/terraform/azure/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,7 @@ variable "update_domain_count" {
9696
description = "Specifies the number of update domains that are used"
9797
default = 2
9898
}
99+
100+
variable "mke_version" {
101+
default = "3.5.5"
102+
}

examples/terraform/gcp/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ variable "windows_password" {
8484
}
8585

8686
variable "mke_version" {
87-
default = "3.5.2"
87+
default = "3.5.5"
8888
}

0 commit comments

Comments
 (0)