File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,11 @@ Resources:
158
158
Type : ' AWS::EC2::SecurityGroup'
159
159
EKSCluster :
160
160
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 }}
161
166
Properties :
162
167
Name : " {{.Cluster.Name}}"
163
168
Version : " 1.33"
@@ -3023,6 +3028,16 @@ Resources:
3023
3028
- BucketArn : !GetAtt AuditTrailBucket.Arn
3024
3029
{{- end }}
3025
3030
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
+
3026
3041
{{- if index .Cluster.ConfigItems "session_manager_destination_arn" }}
3027
3042
SessionManagerLogGroup :
3028
3043
Type : AWS::Logs::LogGroup
Original file line number Diff line number Diff line change @@ -1283,6 +1283,7 @@ wiz_node_feature_rollout : "false"
1283
1283
1284
1284
# EKS specific configuration
1285
1285
eks_control_plane_logging : " true"
1286
+ eks_control_plane_logging_migration : " false"
1286
1287
eks_ip_family : " ipv4"
1287
1288
eks_zalando_iam_aws_proxy_cpu : " 100m"
1288
1289
eks_zalando_iam_aws_proxy_memory : " 512Mi"
You can’t perform that action at this time.
0 commit comments