Skip to content

Latest commit

 

History

History
 
 

aws

AWS Rancher Quickstart

Two single-node RKE Kubernetes clusters will be created from two EC2 instances running SLES 15 and Docker. Both instances will have wide-open security groups and will be accessible over SSH using the SSH keys id_rsa and id_rsa.pub.

Requirements

Name Version
terraform >= 1.0.0
aws 3.68.0
local 2.1.0
tls 3.1.0

Providers

Name Version
aws 3.68.0
local 2.1.0
tls 3.1.0

Modules

Name Source Version
rancher_common ../rancher-common n/a

Resources

Name Type
aws_instance.quickstart_node resource
aws_instance.quickstart_node_win resource
aws_instance.rancher_server resource
aws_key_pair.quickstart_key_pair resource
aws_security_group.rancher_sg_allowall resource
local_file.ssh_private_key_pem resource
local_file.ssh_public_key_openssh resource
tls_private_key.global_key resource
aws_ami.sles data source
aws_ami.windows data source

Inputs

Name Description Type Default Required
aws_access_key AWS access key used to create infrastructure string n/a yes
aws_secret_key AWS secret key used to create AWS infrastructure string n/a yes
rancher_server_admin_password Admin password to use for Rancher server bootstrap string n/a yes
add_windows_node Add a windows node to the workload cluster bool false no
aws_region AWS region used for all resources string "us-east-1" no
aws_session_token AWS session token used to create AWS infrastructure string "" no
cert_manager_version Version of cert-manager to install alongside Rancher (format: 0.0.0) string "1.5.3" no
docker_version Docker version to install on nodes string "19.03" no
instance_type Instance type used for all EC2 instances string "t3a.medium" no
prefix Prefix added to names of all resources string "quickstart" no
rancher_kubernetes_version Kubernetes version to use for Rancher server cluster string "v1.21.8+k3s1" no
rancher_version Rancher server version (format: v0.0.0) string "v2.6.3" no
windows_instance_type Instance type used for all EC2 windows instances string "t3a.large" no
workload_kubernetes_version Kubernetes version to use for managed workload cluster string "v1.20.6-rancher1-1" no

Outputs

Name Description
rancher_node_ip n/a
rancher_server_url n/a
windows-workload-ips n/a
windows_password Returns the decrypted AWS generated windows password
workload_node_ip n/a