This directory contains AWS resources for a Kubernetes deployment.
This repository uses a standard Terraform workflow (init
, plan
, apply
).
For more information, including detailed usage guidelines, see the Terraform documentation.
Name | Description | Type | Required |
---|---|---|---|
aws_region | This is the AWS region. | string |
no |
subnet_az | List of strings of Availability Zone suffixes. | list(string) |
no |
tfe_workspaces_prefix | Prefix for TFE Workspaces. | string |
no |
Name | Description |
---|---|
cluster_id | EKS Cluster ID. |
cluster_name | EKS Cluster Name. |
cluster_region | EKS Cluster Region. |
console_url | AWS Console URL. |
workspace_url | this variable is used for testing purposes and has no bearing on the demo see https://developer.hashicorp.com/terraform/language/values/outputs |
The Kubernetes Cluster can be consumed via the aws_eks_cluster data source:
# see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster
data "aws_eks_cluster" "cluster" {
name = "multi-cloud-k8s"
}
The above example uses the default values for the name
property. This may need to be changed for your situation.