diff --git a/README.md b/README.md
index 22873ab..93d0913 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ The module deploys Karpenter needed AWS resources, namely in IAM. It copies the
| Name | Version |
|------|---------|
-| [aws](#provider\_aws) | 5.89.0 |
+| [aws](#provider\_aws) | 5.94.1 |
| [helm](#provider\_helm) | 2.17.0 |
## Modules
@@ -54,17 +54,17 @@ The module deploys Karpenter needed AWS resources, namely in IAM. It copies the
| [account\_id](#input\_account\_id) | aws account number | `string` | `""` | no |
| [cluster\_endpoint](#input\_cluster\_endpoint) | Endpoint for your Kubernetes API server | `string` | n/a | yes |
| [cluster\_name](#input\_cluster\_name) | EKS cluster name name component used through out the EKS cluster describing its purpose (ex: dice-dev) | `string` | n/a | yes |
+| [eecr\_account\_id](#input\_eecr\_account\_id) | enterpirse ecr source aws account number | `string` | `""` | no |
| [karpenter\_helm\_chart](#input\_karpenter\_helm\_chart) | Which helm chart of karpenter | `string` | `"1.1.1"` | no |
| [karpenter\_helm\_repo](#input\_karpenter\_helm\_repo) | Helm repo for official karpenter chart | `string` | `"oci://public.ecr.aws/karpenter"` | no |
| [karpenter\_node\_group\_name](#input\_karpenter\_node\_group\_name) | The cluster node group that will host karpenter, should not be a karpenter managed node group | `string` | n/a | yes |
| [karpenter\_tag](#input\_karpenter\_tag) | Which tag of karpenter image | `string` | `"1.1.1"` | no |
| [namespace](#input\_namespace) | Namespace for Karpenter | `string` | `"namespace"` | no |
-| [oidc\_provider\_arn](#input\_oidc\_provider\_arn) | The ARN of the OIDC Provider if `enable_irsa = true` | `string` | n/a | yes |
+| [oidc\_provider\_arn](#input\_oidc\_provider\_arn) | The ARN of the OIDC Provider if `enable_irsa = true` | `string` | `""` | no |
| [profile](#input\_profile) | AWS config profile | `string` | `""` | no |
| [region](#input\_region) | AWS region | `string` | n/a | yes |
| [subnets\_name](#input\_subnets\_name) | Define the name of the subnets to be used by this cluster | `string` | `"*-container-*"` | no |
| [tags](#input\_tags) | AWS Tags to apply to appropriate resources | `map(string)` | `{}` | no |
-| [vpc\_id](#input\_vpc\_id) | The ID of the VPC where the resources will be deployed | `string` | n/a | yes |
## Outputs
diff --git a/copy_images.tf b/copy_images.tf
index d1f0dee..5d4d643 100644
--- a/copy_images.tf
+++ b/copy_images.tf
@@ -1,6 +1,6 @@
locals {
karpenter_key = format("%v#%v", "karpenter/controller", var.karpenter_tag)
- ent_ecr_source = format("%v.%v.%v.%v", var.account_id, "dkr.ecr", var.region, "amazonaws.com/ent-images")
+ ent_ecr_source = format("%v.%v.%v.%v", var.eecr_account_id, "dkr.ecr", var.region, "amazonaws.com/ent-images")
image_config = [
{
@@ -36,7 +36,7 @@ module "images" {
}
data "aws_ecr_authorization_token" "ecr_token" {
- registry_id = var.account_id
+ registry_id = var.eecr_account_id
}
data "aws_ecr_authorization_token" "token" {
diff --git a/variables.tf b/variables.tf
index 435897c..4ea6a6a 100644
--- a/variables.tf
+++ b/variables.tf
@@ -14,6 +14,12 @@ variable "cluster_name" {
type = string
}
+variable "eecr_account_id" {
+ description = "enterpirse ecr source aws account number"
+ type = string
+ default = ""
+}
+
variable "karpenter_helm_chart" {
description = "Which helm chart of karpenter"
type = string
@@ -44,9 +50,11 @@ variable "namespace" {
default = "namespace"
}
+# tflint-ignore: terraform_unused_declarations
variable "oidc_provider_arn" {
description = "The ARN of the OIDC Provider if `enable_irsa = true`"
type = string
+ default = ""
}
variable "profile" {