Skip to content

Commit

Permalink
add provider and module versions for aws (#926)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielZhangQD authored and cofyc committed Sep 18, 2019
1 parent 1423093 commit f987843
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/aws/aws-tutorial.tfvars
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
default_cluster_pd_instance_type = "c5d.large"
default_cluster_pd_tikv_instance_type = "c5d.large"
default_cluster_tikv_instance_type = "c5d.large"
default_cluster_tidb_instance_type = "c4.large"
default_cluster_monitor_instance_type = "c5.large"

default_cluster_pd_count = 1
default_cluster_tikv_count = 1
default_cluster_tidb_count = 1

default_cluster_cluster_name = "aws-tutorial"
default_cluster_name = "aws-tutorial"
9 changes: 9 additions & 0 deletions deploy/aws/versions.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

terraform {
required_version = ">= 0.12"
required_providers {
aws = "~> 2.27"
external = "~> 1.2"
helm = "~> 0.10"
local = "~> 1.3"
null = "~> 2.1"
template = "~> 2.1"
tls = "~> 2.1"
}
}
1 change: 1 addition & 0 deletions deploy/modules/aws/tidb-operator/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module "eks" {
source = "terraform-aws-modules/eks/aws"

version = "5.1.0"
cluster_name = var.eks_name
cluster_version = var.eks_version
vpc_id = var.vpc_id
Expand Down

0 comments on commit f987843

Please sign in to comment.