Skip to content

(aws-eks): Cannot access default fargate profile for new FargateCluster #16149

@magoun

Description

@magoun

It would be useful to have a way to list all fargate profiles associated with a fargate cluster. Currently there isn't a way to access the default profile created by the FargateCluster construct.

Use Case

My specific case is to allow new FargateCluster to create a default fargate profile, then fetch the pod execution role from that profile and reuse it later when adding further profiles (via CI/CD pipeline).

Proposed Solution

Ideally, the fargate cluster class would have a fargateProfiles property that could be accessed. It was also work to be able to instantiated a FargateProfile class from a profile arn. That would only require the cluster to return the default profile arn as a property, instead of all profiles of the cluster.

A workaround is to explicitly create the default profile and pod execution role, then output the created execution role for use in the pipeline.

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eksRelated to Amazon Elastic Kubernetes Serviceeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions