-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(aws-eks): Cannot access default fargate profile for new FargateCluster #16149
Description
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