Skip to content

Commit

Permalink
Pass through variable creation for ECR pull through cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-fillmore committed Nov 28, 2024
1 parent a87dd83 commit 7baa279
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions odc_eks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ module "odc_eks" {
| extra_kubelet_args | Additional kubelet command-line arguments | string | "--arg1=value --arg2" | No |
| extra_bootstrap_args | Additional bootstrap command-line arguments | string | "--arg1 value --arg2=value --arg3" | No |
| extra_userdata | Additional EC2 user data commands that will be passed to EKS nodes | string | <<USERDATA echo "" USERDATA | No |
| enable_ecr_pullthough_cache_permissions | Create additional cluster node IAM permissions to allow cluster to use ecr pull-through cache rules. | boolean | false | No |
| tags | Additional tags - e.g. `map('StackName','XYZ')` | map(string) | {} | No |
| enabled_cluster_log_types | List of the desired control plane logging to enable, defaults to none | list(string) | [] | No |
| enable_custom_cluster_log_group | Create a custom CloudWatch Log Group for the cluster. If you supply `enabled_cluster_log_types` but leave this false, EKS will create a log group automatically with default retention values. | bool | false | No |
Expand Down
7 changes: 4 additions & 3 deletions odc_eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ module "eks" {

enable_ec2_ssm = var.enable_ec2_ssm

enabled_cluster_log_types = var.enabled_cluster_log_types
enable_custom_cluster_log_group = var.enable_custom_cluster_log_group
log_retention_period = var.log_retention_period
enabled_cluster_log_types = var.enabled_cluster_log_types
enable_custom_cluster_log_group = var.enable_custom_cluster_log_group
log_retention_period = var.log_retention_period
enable_ecr_pullthough_cache_permissions = var.enable_ecr_pullthough_cache_permissions

# Worker configuration
min_nodes = var.min_nodes
Expand Down
6 changes: 6 additions & 0 deletions odc_eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ USERDATA

}

variable "enable_ecr_pullthough_cache_permissions" {
type = bool
description = "Create additional cluster node IAM permissions to allow cluster to use ecr pull-through cache rules."
default = false
}

variable "tags" {
type = map(string)
description = "Additional tags(e.g. `map('StackName','XYZ')`"
Expand Down

0 comments on commit 7baa279

Please sign in to comment.