Skip to content
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

feat(rancher/aws): Use AWS env vars, use null defaults #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions rancher/aws/terraform.tfvars.example
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@

# AWS access key used to create infrastructure
aws_access_key = ""
#aws_access_key = ""

# AWS secret key used to create AWS infrastructure
aws_secret_key = ""
#aws_secret_key = ""

# Admin password to use for Rancher server bootstrap, min. 12 characters
rancher_server_admin_password = ""

# Add a windows node to the workload cluster
add_windows_node = false
#add_windows_node = false

# AWS region used for all resources
aws_region = "us-east-1"
#aws_region = "us-east-1"

# AWS session token used to create AWS infrastructure
aws_session_token = ""
#aws_session_token = ""

# AWS zone used for all resources
aws_zone = "us-east-1b"
#aws_zone = ""

# Version of cert-manager to install alongside Rancher (format: 0.0.0)
cert_manager_version = "1.11.0"
#cert_manager_version = "1.11.0"

# Instance type used for all EC2 instances
instance_type = "t3a.medium"
#instance_type = "t3a.medium"

# Prefix added to names of all resources
prefix = "quickstart"
#prefix = "quickstart"

# The helm repository, where the Rancher helm chart is installed from
rancher_helm_repository = "https://releases.rancher.com/server-charts/latest"
#rancher_helm_repository = "https://releases.rancher.com/server-charts/latest"

# Kubernetes version to use for Rancher server cluster
rancher_kubernetes_version = "v1.24.14+k3s1"
#rancher_kubernetes_version = "v1.24.14+k3s1"

# Rancher server version (format: v0.0.0)
rancher_version = "2.7.9"
#rancher_version = "2.7.9"

# Instance type used for all EC2 windows instances
windows_instance_type = "t3a.large"
#windows_instance_type = "t3a.large"

# Kubernetes version to use for managed workload cluster
workload_kubernetes_version = "v1.24.14+rke2r1"
#workload_kubernetes_version = "v1.24.14+rke2r1"
9 changes: 3 additions & 6 deletions rancher/aws/variables.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
# Variables for AWS infrastructure module

// TODO - use null defaults

# Required
variable "aws_access_key" {
type = string
description = "AWS access key used to create infrastructure"
default = ""
}

# Required
variable "aws_secret_key" {
type = string
description = "AWS secret key used to create AWS infrastructure"
default = ""
}

variable "aws_session_token" {
Expand All @@ -29,7 +27,7 @@ variable "aws_region" {
variable "aws_zone" {
type = string
description = "AWS zone used for all resources"
default = "us-east-1b"
default = ""
}

variable "prefix" {
Expand Down Expand Up @@ -86,7 +84,6 @@ variable "rancher_server_admin_password" {
description = "Admin password to use for Rancher server bootstrap, min. 12 characters"
}

# Required
variable "add_windows_node" {
type = bool
description = "Add a windows node to the workload cluster"
Expand Down