Skip to content

Commit d0c9d14

Browse files
kay-kimbobbyiliev
authored andcommitted
Update providers config section of README
1 parent 3e2c57d commit d0c9d14

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,30 @@ provider "aws" {
2121
2222
# Required for EKS authentication
2323
provider "kubernetes" {
24-
host = module.materialize_infrastructure.eks_cluster_endpoint
25-
cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data)
24+
host = module.eks.cluster_endpoint
25+
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
2626
2727
exec {
2828
api_version = "client.authentication.k8s.io/v1beta1"
29-
args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name]
29+
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
3030
command = "aws"
3131
}
3232
}
3333
3434
# Required for Materialize Operator installation
3535
provider "helm" {
3636
kubernetes {
37-
host = module.materialize_infrastructure.eks_cluster_endpoint
38-
cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data)
37+
host = module.eks.cluster_endpoint
38+
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
3939
4040
exec {
4141
api_version = "client.authentication.k8s.io/v1beta1"
42-
args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name]
42+
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
4343
command = "aws"
4444
}
4545
}
4646
}
4747
48-
module "materialize_infrastructure" {
49-
source = "git::https://github.com/MaterializeInc/terraform-aws-materialize.git"
50-
# Other required variables
51-
}
5248
```
5349

5450
> **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
126122
| <a name="input_install_metrics_server"></a> [install\_metrics\_server](#input\_install\_metrics\_server) | Whether to install the metrics-server for the Materialize Console | `bool` | `true` | no |
127123
| <a name="input_kubernetes_namespace"></a> [kubernetes\_namespace](#input\_kubernetes\_namespace) | The Kubernetes namespace for the Materialize resources | `string` | `"materialize-environment"` | no |
128124
| <a name="input_log_group_name_prefix"></a> [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 |
129-
| <a name="input_materialize_instances"></a> [materialize\_instances](#input\_materialize\_instances) | Configuration for Materialize instances | <pre>list(object({<br/> name = string<br/> namespace = optional(string)<br/> database_name = string<br/> environmentd_version = optional(string, "v0.130.4")<br/> cpu_request = optional(string, "1")<br/> memory_request = optional(string, "1Gi")<br/> memory_limit = optional(string, "1Gi")<br/> create_database = optional(bool, true)<br/> in_place_rollout = optional(bool, false)<br/> request_rollout = optional(string)<br/> force_rollout = optional(string)<br/> }))</pre> | `[]` | no |
125+
| <a name="input_materialize_instances"></a> [materialize\_instances](#input\_materialize\_instances) | Configuration for Materialize instances | <pre>list(object({<br/> name = string<br/> namespace = optional(string)<br/> database_name = string<br/> environmentd_version = optional(string, "v0.130.4")<br/> cpu_request = optional(string, "1")<br/> memory_request = optional(string, "1Gi")<br/> memory_limit = optional(string, "1Gi")<br/> create_database = optional(bool, true)<br/> in_place_rollout = optional(bool, false)<br/> request_rollout = optional(string)<br/> force_rollout = optional(string)<br/> balancer_memory_request = optional(string, "256Mi")<br/> balancer_memory_limit = optional(string, "256Mi")<br/> balancer_cpu_request = optional(string, "100m")<br/> }))</pre> | `[]` | no |
130126
| <a name="input_metrics_retention_days"></a> [metrics\_retention\_days](#input\_metrics\_retention\_days) | Number of days to retain CloudWatch metrics | `number` | `7` | no |
131127
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Namespace for all resources, usually the organization or project name | `string` | n/a | yes |
132128
| <a name="input_network_id"></a> [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 |

docs/header.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,30 @@ provider "aws" {
2020
2121
# Required for EKS authentication
2222
provider "kubernetes" {
23-
host = module.materialize_infrastructure.eks_cluster_endpoint
24-
cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data)
23+
host = module.eks.cluster_endpoint
24+
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
2525
2626
exec {
2727
api_version = "client.authentication.k8s.io/v1beta1"
28-
args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name]
28+
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
2929
command = "aws"
3030
}
3131
}
3232
3333
# Required for Materialize Operator installation
3434
provider "helm" {
3535
kubernetes {
36-
host = module.materialize_infrastructure.eks_cluster_endpoint
37-
cluster_ca_certificate = base64decode(module.materialize_infrastructure.cluster_certificate_authority_data)
36+
host = module.eks.cluster_endpoint
37+
cluster_ca_certificate = base64decode(module.eks.cluster_certificate_authority_data)
3838
3939
exec {
4040
api_version = "client.authentication.k8s.io/v1beta1"
41-
args = ["eks", "get-token", "--cluster-name", module.materialize_infrastructure.eks_cluster_name]
41+
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
4242
command = "aws"
4343
}
4444
}
4545
}
4646
47-
module "materialize_infrastructure" {
48-
source = "git::https://github.com/MaterializeInc/terraform-aws-materialize.git"
49-
# Other required variables
50-
}
5147
```
5248

5349
> **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.

0 commit comments

Comments
 (0)