(aws-eks): Cannot access default fargate profile for new FargateCluster #16149
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
p2
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
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: