Skip to content

(aws-eks): Can't enable control plane logging for fargate cluster #19302

@dza89

Description

@dza89

What is the problem?

This MR added the ability to enable control plane logging for eks clusters. This doesn't work for a fargate cluster because the ClusterProps interface is not included in FargateCluster.

Can I make an MR where I move ClusterLogging to ClusterOptions? Also open to other solutions of course.
I thought I would ask and wait for your input first.

Reproduction Steps

Try to add

const cluster = new eks.FargateCluster(this, 'Cluster', {
  // ...
  version: eks.KubernetesVersion.V1_21,
  clusterLogging: [
    eks.ClusterLoggingTypes.API,
    eks.ClusterLoggingTypes.AUTHENTICATOR,
    eks.ClusterLoggingTypes.SCHEDULER,
  ],
});

and see if it works.

What did you expect to happen?

Enabling logging for fargate clusters would be possible as well

What actually happened?

Nothing.

CDK CLI Version

2.14

Framework Version

No response

Node.js Version

16.13.2

OS

MacOs

Language

Typescript

Language Version

4.6.2

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eksRelated to Amazon Elastic Kubernetes ServicebugThis issue is a bug.effort/smallSmall work item – less than a day of effortgood first issueRelated to contributions. See CONTRIBUTING.mdp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions