Hi All, I am using eks.cluster library to create e...
# general
f
Hi All, I am using eks.cluster library to create eks cluster and want to add some custom tags to cluster security group using clusterSecurityGroupTags flag but it's not working sample code as below
Copy code
const cluster = new eks.Cluster("my-eks-cluster", {
    clusterSecurityGroupTags: {
        "Environment": "Production",
        "Team": "DevOps"
    },
})
these tag not able to apply pulumi version is latest
look like it apply to additional EKS security group, must change the name of parameter from
clusterSecurityGroupTags
to
additionalClusterSecurityGroupTags
something like this
m
There is no such parameter. You can see here that the clusterSecurityGroupTags are passed down to the aws.ec2.SecurityGroup resource. (Note that there is also the nodeSecurityGroupTags option that are applied to the default node group security group, which is not the same as the cluster security group.)
f
these both
clusterSecurityGroupTags
applied to EKS additional Security group. and
nodeSecurityGroupTags
applied to security group which say's it's node security group. but this security group not attached to node.
m
How are you creating your nodes?
f
using
eks.ManagedNodeGroup
defaultnodegroup disable in eks configuration
m
An
eks.ManagedNodeGroup
is a "regular"
aws.eks.NodeGroup
(docs) that does not take a security group or security group tags. The
eks.Cluster.nodeSecurityGroupTags
are only passed to
eks.NodeGroup
and
eks.NodeGroupV2
, check the implementation for details.