https://pulumi.com logo
Title
f

future-window-78560

11/19/2021, 2:13 PM
Hello everyone! I am struggling to create a serverless fargate eks cluster on AWS through pulumi. After the creation of eks cluster through pulumi, I am trying to create fargateprofile for eks cluster but it says that fargateprofile component is not supported. Any guide on how to resolve this.
g

great-queen-39697

11/19/2021, 5:15 PM
Are you using the Classic AWS provider? You need to provide a map instead of a
FargateProfileLabelArgs
object on line 56 if you are: https://www.pulumi.com/registry/packages/aws/api-docs/eks/fargateprofile/#fargateprofileselector If you're using the Native AWS provider, you want to use
FargateProfileLabel
instead of
FargateProfileLabelArgs
on line 56: https://www.pulumi.com/registry/packages/aws/api-docs/eks/fargateprofile/#fargateprofileselector
🙏 1
f

future-window-78560

11/20/2021, 8:36 AM
I got your point, still unable to figure out the correct output.
w

witty-candle-66007

11/22/2021, 2:23 PM
@future-window-78560 I don’t know if it’ll help, but I have an example of EKS on fargate here: https://github.com/MitchellGerdisch/pulumi-work/tree/master/py-aws-eks-on-fargate