Last active
June 7, 2021 12:33
-
-
Save yogesh174/fe6118afa0c6f7f5d821fa7de272d85c to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################ | |
######## AWS config ######## | |
############################ | |
variable "aws_credentials_path" { | |
type = string | |
default = "~/.aws/credentials" | |
} | |
variable "aws_credentials_profile" { | |
type = string | |
default = "default" | |
} | |
variable "aws_region" { | |
type = string | |
default = "ap-south-1" | |
} | |
variable "key_name" { | |
type = string | |
default = "terraform_k8s" | |
} | |
variable "aws_instance_type" { | |
type = string | |
default = "t2.micro" | |
} | |
############################ | |
######## GCP config ######## | |
############################ | |
variable "gcp_credentials_path" { | |
type = string | |
} | |
variable "gcp_region" { | |
type = string | |
default = "asia-south1" | |
} | |
variable "gcp_project" { | |
type = string | |
} | |
variable "gcp_machine_type" { | |
type = string | |
default = "e2-micro" | |
} | |
variable "gcp_zone" { | |
type = string | |
default = "asia-south1-a" | |
} | |
############################## | |
######## Azure config ######## | |
############################## | |
variable "azure_rg_name" { | |
type = string | |
default = "k8s-resources" | |
} | |
variable "azure_rg_location" { | |
type = string | |
default = "West Europe" | |
} | |
variable "azure_vn_name" { | |
type = string | |
default = "k8s-network" | |
} | |
variable "azure_vn_adress_space" { | |
type = list | |
default = ["10.0.0.0/16"] | |
} | |
variable "azure_subnet_name" { | |
type = string | |
default = "k8s-subnet" | |
} | |
variable "azure_subnet_adress_prefixes" { | |
type = list | |
default = ["10.0.2.0/24"] | |
} | |
variable "azure_vm_size" { | |
type = string | |
default = "Standard_A1_v2" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment