https://pulumi.com logo
Title
a

adamant-translator-31969

02/04/2021, 9:21 PM
Hi! I want to create 2 fargates profile inside for statement... but I receive this message
Error creating EKS Fargate Profile (origination-eks-stgfg:Profile-1): ResourceInUseException: Cannot create Fargate Profile Profile-1 because cluster origination-eks-stgfg currently has Fargate profile Profile-2 in status CREATING
b

billowy-army-68599

02/04/2021, 9:43 PM
can you share your code?
a

adamant-translator-31969

02/05/2021, 2:12 AM
yes @billowy-army-68599
for (let i = 0; i < args.eksFgCfg.length; i++ ) {
fgProfile =  new aws.eks.FargateProfile('fgProfile-' + args.eksFgCfg[i].profileName, {
fargateProfileName: args.eksFgCfg[i].profileName,
clusterName: args.eksFgCfg[i].eksClusterName,
podExecutionRoleArn: fgPodExecutionRole.arn,
selectors: args.eksFgCfg[i].eksFgSelect,
}, defaultResourceOptions);
}
b

billowy-army-68599

02/05/2021, 2:39 AM
i believe you can't create the fargate profiles in parallel, they have to happen one at time. I see some upstream issues related to this but trying to verify
a

adamant-translator-31969

02/05/2021, 11:12 AM
Ok thanks @billowy-army-68599 😊 I will try to create them in another way