-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded Terraform to >=1.0 #2308
Changes from 5 commits
aee6c4f
8439f21
8200756
2f1c759
9c1e469
658e56a
574f298
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,16 @@ | |
|
||
|
||
// Run: | ||
// terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.4.0"] | ||
|
||
provider "google" { | ||
version = "~> 2.10" | ||
} | ||
|
||
provider "google-beta" { | ||
version = "~> 2.10" | ||
// terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.17.0"] | ||
|
||
terraform { | ||
required_version = ">= 1.0.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: This line has extra whitespace at the end. |
||
required_providers { | ||
google = { | ||
source = "hashicorp/google" | ||
version = "~> 3.88" | ||
} | ||
} | ||
} | ||
|
||
variable "project" { | ||
|
@@ -142,6 +144,7 @@ output "host" { | |
} | ||
output "token" { | ||
value = module.gke_cluster.token | ||
sensitive = true | ||
} | ||
output "cluster_ca_certificate" { | ||
value = module.gke_cluster.cluster_ca_certificate | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,14 @@ | |
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
provider "google" { | ||
version = "~> 2.10" | ||
terraform { | ||
required_version = ">= 1.0.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: This line has extra whitespace at the end. |
||
required_providers { | ||
google = { | ||
source = "google" | ||
version = "~> 3.88" | ||
} | ||
} | ||
} | ||
|
||
variable "project" { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,17 @@ | |
|
||
|
||
// Run: | ||
// terraform apply [-var agones_version="1.4.0"] | ||
// terraform apply [-var agones_version="1.17.0"] | ||
|
||
terraform { | ||
required_version = ">= 1.0.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: This line has extra whitespace at the end. |
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 3.0" | ||
} | ||
} | ||
} | ||
|
||
// Install latest version of agones | ||
variable "agones_version" { | ||
|
@@ -34,8 +44,7 @@ variable "node_count" { | |
} | ||
|
||
provider "aws" { | ||
version = "~> 2.8" | ||
region = var.region | ||
region = var.region | ||
} | ||
|
||
variable "machine_type" { default = "t2.large" } | ||
|
@@ -49,6 +58,10 @@ variable "feature_gates" { | |
} | ||
|
||
module "eks_cluster" { | ||
// *************************************************************************************************** | ||
// Update ?ref= to the agones release you are installing. For example, ?ref=release-1.17.0 corresponds | ||
// to Agones version 1.17.0 | ||
// *************************************************************************************************** | ||
source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/eks/?ref=main" | ||
|
||
machine_type = var.machine_type | ||
|
@@ -64,6 +77,10 @@ data "aws_eks_cluster_auth" "example" { | |
// Next Helm module cause "terraform destroy" timeout, unless helm release would be deleted first. | ||
// Therefore "helm delete --purge agones" should be executed from the CLI before executing "terraform destroy". | ||
module "helm_agones" { | ||
// *************************************************************************************************** | ||
// Update ?ref= to the agones release you are installing. For example, ?ref=release-1.17.0 corresponds | ||
// to Agones version 1.17.0 | ||
// *************************************************************************************************** | ||
source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/helm3/?ref=main" | ||
|
||
udp_expose = "false" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,16 @@ | |
|
||
|
||
// Run: | ||
// terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.8.0"] | ||
|
||
provider "google" { | ||
version = "~> 2.10" | ||
} | ||
|
||
provider "google-beta" { | ||
version = "~> 2.10" | ||
// terraform apply -var project="<YOUR_GCP_ProjectID>" [-var agones_version="1.17.0"] | ||
|
||
terraform { | ||
required_version = ">= 1.0.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: This line has extra whitespace at the end. |
||
required_providers { | ||
google = { | ||
source = "hashicorp/google" | ||
version = "~> 3.88" | ||
} | ||
} | ||
} | ||
|
||
variable "project" { | ||
|
@@ -79,8 +81,8 @@ variable "windows_machine_type" { | |
|
||
module "gke_cluster" { | ||
// *************************************************************************************************** | ||
// Update ?ref= to the agones release you are installing. For example, ?ref=release-1.8.0 corresponds | ||
// to Agones version 1.8.0 | ||
// Update ?ref= to the agones release you are installing. For example, ?ref=release-1.17.0 corresponds | ||
// to Agones version 1.17.0 | ||
// *************************************************************************************************** | ||
source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/gke/?ref=main" | ||
|
||
|
@@ -99,8 +101,8 @@ module "gke_cluster" { | |
|
||
module "helm_agones" { | ||
// *************************************************************************************************** | ||
// Update ?ref= to the agones release you are installing. For example, ?ref=release-1.8.0 corresponds | ||
// to Agones version 1.8.0 | ||
// Update ?ref= to the agones release you are installing. For example, ?ref=release-1.17.0 corresponds | ||
// to Agones version 1.17.0 | ||
// *************************************************************************************************** | ||
source = "git::https://github.com/googleforgames/agones.git//install/terraform/modules/helm3/?ref=main" | ||
|
||
|
@@ -117,7 +119,8 @@ output "host" { | |
value = module.gke_cluster.host | ||
} | ||
output "token" { | ||
value = module.gke_cluster.token | ||
value = module.gke_cluster.token | ||
sensitive = true | ||
} | ||
output "cluster_ca_certificate" { | ||
value = module.gke_cluster.cluster_ca_certificate | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,11 +14,16 @@ | |
|
||
|
||
terraform { | ||
required_version = ">= 0.12.6" | ||
required_version = ">= 1.0.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: This line has extra whitespace at the end. |
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 3.0" | ||
} | ||
} | ||
} | ||
|
||
provider "aws" { | ||
version = ">= 2.55.0" | ||
region = var.region | ||
} | ||
|
||
|
@@ -58,7 +63,7 @@ resource "aws_security_group" "worker_group_mgmt_one" { | |
|
||
module "vpc" { | ||
source = "terraform-aws-modules/vpc/aws" | ||
version = "2.47.0" | ||
version = "~> 3.0" | ||
|
||
name = "test-vpc-lt" | ||
cidr = "10.0.0.0/16" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This line has extra whitespace at the end.