diff --git a/README.md b/README.md index 01b3e96..33cfd4e 100644 --- a/README.md +++ b/README.md @@ -21,12 +21,12 @@ provider "aws" { # Required for EKS authentication provider "kubernetes" { - host = module.materialize_infrastructure.eks_cluster_endpoint - cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data) + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) exec { api_version = "client.authentication.k8s.io/v1beta1" - args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name] + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] command = "aws" } } @@ -34,21 +34,17 @@ provider "kubernetes" { # Required for Materialize Operator installation provider "helm" { kubernetes { - host = module.materialize_infrastructure.eks_cluster_endpoint - cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data) + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) exec { api_version = "client.authentication.k8s.io/v1beta1" - args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name] + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] command = "aws" } } } -module "materialize_infrastructure" { - source = "git::https://github.com/MaterializeInc/terraform-aws-materialize.git" - # Other required variables -} ``` > **Note:** The Kubernetes and Helm providers are configured to use the AWS CLI for authentication with the EKS cluster. This requires that you have the AWS CLI installed and configured with access to the AWS account where the EKS cluster is deployed. @@ -126,7 +122,7 @@ export AWS_PROFILE=your-profile-name | [install\_metrics\_server](#input\_install\_metrics\_server) | Whether to install the metrics-server for the Materialize Console | `bool` | `true` | no | | [kubernetes\_namespace](#input\_kubernetes\_namespace) | The Kubernetes namespace for the Materialize resources | `string` | `"materialize-environment"` | no | | [log\_group\_name\_prefix](#input\_log\_group\_name\_prefix) | Prefix for the CloudWatch log group name (will be combined with environment name) | `string` | `"materialize"` | no | -| [materialize\_instances](#input\_materialize\_instances) | Configuration for Materialize instances |
list(object({
name = string
namespace = optional(string)
database_name = string
environmentd_version = optional(string, "v0.130.4")
cpu_request = optional(string, "1")
memory_request = optional(string, "1Gi")
memory_limit = optional(string, "1Gi")
create_database = optional(bool, true)
in_place_rollout = optional(bool, false)
request_rollout = optional(string)
force_rollout = optional(string)
}))
| `[]` | no | +| [materialize\_instances](#input\_materialize\_instances) | Configuration for Materialize instances |
list(object({
name = string
namespace = optional(string)
database_name = string
environmentd_version = optional(string, "v0.130.4")
cpu_request = optional(string, "1")
memory_request = optional(string, "1Gi")
memory_limit = optional(string, "1Gi")
create_database = optional(bool, true)
in_place_rollout = optional(bool, false)
request_rollout = optional(string)
force_rollout = optional(string)
balancer_memory_request = optional(string, "256Mi")
balancer_memory_limit = optional(string, "256Mi")
balancer_cpu_request = optional(string, "100m")
}))
| `[]` | no | | [metrics\_retention\_days](#input\_metrics\_retention\_days) | Number of days to retain CloudWatch metrics | `number` | `7` | no | | [namespace](#input\_namespace) | Namespace for all resources, usually the organization or project name | `string` | n/a | yes | | [network\_id](#input\_network\_id) | The ID of the VPC in which resources will be deployed. Only used if create\_vpc is false. | `string` | `""` | no | diff --git a/docs/header.md b/docs/header.md index 12b2144..a3d10b4 100644 --- a/docs/header.md +++ b/docs/header.md @@ -20,12 +20,12 @@ provider "aws" { # Required for EKS authentication provider "kubernetes" { - host = module.materialize_infrastructure.eks_cluster_endpoint - cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data) + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) exec { api_version = "client.authentication.k8s.io/v1beta1" - args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name] + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] command = "aws" } } @@ -33,21 +33,17 @@ provider "kubernetes" { # Required for Materialize Operator installation provider "helm" { kubernetes { - host = module.materialize_infrastructure.eks_cluster_endpoint - cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data) + host = module.eks.cluster_endpoint + cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data) exec { api_version = "client.authentication.k8s.io/v1beta1" - args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name] + args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name] command = "aws" } } } -module "materialize_infrastructure" { - source = "git::https://github.com/MaterializeInc/terraform-aws-materialize.git" - # Other required variables -} ``` > **Note:** The Kubernetes and Helm providers are configured to use the AWS CLI for authentication with the EKS cluster. This requires that you have the AWS CLI installed and configured with access to the AWS account where the EKS cluster is deployed.