Skip to content

Commit 06a2ef9

Browse files
Merge dev to dev-to-kube-1.33
2 parents 94034ea + a70f7d7 commit 06a2ef9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

cluster/cluster.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ Resources:
158158
Type: 'AWS::EC2::SecurityGroup'
159159
EKSCluster:
160160
Type: AWS::EKS::Cluster
161+
{{- if eq .Cluster.ConfigItems.eks_control_plane_logging "true" }}
162+
{{- if eq .Cluster.ConfigItems.eks_control_plane_logging_migration "true" }}
163+
DependsOn: ControlPlaneLogGroup
164+
{{- end }}
165+
{{- end }}
161166
Properties:
162167
Name: "{{.Cluster.Name}}"
163168
Version: "1.33"
@@ -3023,6 +3028,16 @@ Resources:
30233028
- BucketArn: !GetAtt AuditTrailBucket.Arn
30243029
{{- end }}
30253030

3031+
{{- if eq .Cluster.ConfigItems.eks_control_plane_logging "true" }}
3032+
{{- if eq .Cluster.ConfigItems.eks_control_plane_logging_migration "true" }}
3033+
ControlPlaneLogGroup:
3034+
Type: AWS::Logs::LogGroup
3035+
Properties:
3036+
LogGroupName: "/aws/eks/{{.Cluster.LocalID}}/cluster"
3037+
RetentionInDays: 545
3038+
{{- end }}
3039+
{{- end }}
3040+
30263041
{{- if index .Cluster.ConfigItems "session_manager_destination_arn" }}
30273042
SessionManagerLogGroup:
30283043
Type: AWS::Logs::LogGroup

cluster/config-defaults.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,7 @@ wiz_node_feature_rollout : "false"
12831283

12841284
# EKS specific configuration
12851285
eks_control_plane_logging: "true"
1286+
eks_control_plane_logging_migration: "false"
12861287
eks_ip_family: "ipv4"
12871288
eks_zalando_iam_aws_proxy_cpu: "100m"
12881289
eks_zalando_iam_aws_proxy_memory: "512Mi"

0 commit comments

Comments
 (0)