Closed javydekoning closed 1 year ago
I have a fix for and it will be released in 1.7.4. Please don't use an outer stack, it creates a redundant stack and frequently causes issues. See more here.
I have a fix for and it will be released in 1.7.4.
Please don't use an outer stack, it creates a redundant stack and frequently causes issues. See more here.
Thanks! If I shouldn't use an outer stack, then how do I best pass an IVpc from another stack in the same App?
One example of using DirectVpcProvider is here.
Generally, you will have a separate stack for VPC and reuse. You can also look up Vpc with new VpcProvider('my-vpc-id')
.
If you use dedicated VPC for the cluster, you can register your custom VPC provider with your specific logic right in the blueprint as well as described here.
Still have this on 1.8.0
even without using an outer stack.
const clusterProvider = new blueprints.GenericClusterProvider({
version: eks.KubernetesVersion.V1_26,
securityGroup: network.sg,
fargateProfiles: {
karpenter: {
fargateProfileName: "karpenter",
selectors: [{ namespace: "karpenter" }],
},
},
});
new blueprints.BlueprintBuilder()
.addOns(
...addOns
)
.resourceProvider(
blueprints.GlobalResources.Vpc,
new blueprints.DirectVpcProvider(network.vpc)
)
.resourceProvider(
certStack.zone.zoneName,
new blueprints.ImportHostedZoneProvider(certStack.zone.hostedZoneId),
)
.resourceProvider(
"cert", new blueprints.ImportCertificateProvider(
certStack.certificateArn,
"wildcardCert"
),
)
.clusterProvider(clusterProvider)
.build(app, "eks-blueprint");
Any workaround available?
@javydekoning the issue somehow got reintroduced, apologies about that.
My assumption is that your list of addons contains vpc-cni addon. In that case, here is a workaround that you can use before I release the patch:
.addOns(
new blueprints.VpcCniAddOn({
controlPlaneAddOn: false
} as blueprints.VpcCniAddOnProps))
Hope it helps, I will take a look at the fix shortly.
That worked! Thank you
1.8.1 is published now. Appreciate your early feedback. Hope it works this time.
Closing, we can always reopen if needed.
Describe the bug
This Stack was working fine on a previous version of CDK Blueprints (I think
1.5.4
was the latest I deployed).However, now it's running into a circular dependency error:
If I do not include a Fargate profile the dependency error goes away.
Expected Behavior
Deploy without issues
Current Behavior
Circular dependency error
Reproduction Steps
See this stack:
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.78.0
EKS Blueprints Version
1.7.2
Node.js Version
20
Environment details (OS name and version, etc.)
Mac OS Ventura
Other information
No response