pulumi / pulumi-eks

A Pulumi component for easily creating and managing an Amazon EKS Cluster
https://www.pulumi.com/registry/packages/eks/
Apache License 2.0
171 stars 82 forks source link

Add parameter for skipping default security groups #1416

Closed flostadler closed 1 month ago

flostadler commented 1 month ago

Pulumi EKS currently always creates a cluster security group and node security group.

Users that either manage the node security themselves or use the ManagedNodeGroup component (uses the EKS created SG) do not need those default security groups.

This change adds a flag on the cluster (skipDefaultSecurityGroups) that will skip creating those default security groups. Instead.

This introduces a small breaking change, the clusterSecurityGroup, nodeSecurityGroup and clusterIngressRule outputs are now optional. The impact of this should be minimal because users that create custom node groups usually do not use the security groups of the cluster for that. If they do, they need to add a null check.

Fixes https://github.com/pulumi/pulumi-eks/issues/747

github-actions[bot] commented 1 month ago

Does the PR have any schema changes?

Found 4 breaking changes:

Resources

flostadler commented 1 month ago

@t0yv0 @corymhall can you please have another look? I had to change the approach due to the issues with .get in MLCs.

t0yv0 commented 1 month ago

I had to change the approach due to the issues with .get in MLCs.

Very much worth spending time on to extract a repro and link here 🙏 If you are out of capacity sent it over to me as I might have some bandwidth.

flostadler commented 1 month ago

I had to change the approach due to the issues with .get in MLCs.

Very much worth spending time on to extract a repro and link here 🙏 If you are out of capacity sent it over to me as I might have some bandwidth.

Fully agreed! I already had a chat with Will about this. I'll try to create a minimal repro tomorrow to further investigate