Terraform scripts to create Rancher servers
This is a variables.sh file with environment variables for this script (fill out with your values):
# aws creds
export TF_VAR_aws_region=
export TF_VAR_aws_access_key=
export TF_VAR_aws_secret_key=
#######################################################################
# aws instance info
# ec2 info
export TF_VAR_aws_prefix=
export TF_VAR_aws_ami=ami-
export TF_VAR_aws_instance_type=
export TF_VAR_aws_subnet_a=
export TF_VAR_aws_subnet_b=
export TF_VAR_aws_subnet_c=
export TF_VAR_aws_security_group=
export TF_VAR_aws_key_name=
export TF_VAR_aws_instance_size=
export TF_VAR_aws_vpc=
# route 53 info
export TF_VAR_aws_route_zone_name=
#######################################################################
# ssh info
export TF_VAR_ssh_private_key_path=
# kubeconfig path
export TF_VAR_kube_config_path=
#######################################################################
# rancher info
export TF_VAR_rancher_tag_version=
export TF_VAR_rancher_chart_version=
export TF_VAR_rancher_password=
You also can use a separate file to store variables .tfvars
.
Please refer to the official documents how to use variables in terraform https://www.terraform.io/language/values