Hi all ! I am trying to setup a simple EKS cluster...
# aws
w
Hi all ! I am trying to setup a simple EKS cluster using the
pulumi-eks
with a NodeGroup. Whenever I am trying to launch it throws this error:
Copy code
Exception: Setting nodeGroupOptions, and any set of singular node group option(s) on the cluster, is mutually exclusive. Choose a single approach.
I looked at a few threads in this channel to figure out what the issue would possibly be and reached this code snippet where the check happens: link. I want to restrict the configurations to the NodeGroup as I have to create multiple NodeGroups for our usecase. Can anyone guide me as to what am I missing here? Adding code in thread.
Copy code
cluster_name = f"{stack}-cluster"
eks_cluster = pulumi_eks.Cluster(
    cluster_name,
    name=cluster_name,
    cluster_security_group=eks_sg,
  node_group_options=pulumi_eks.ClusterNodeGroupOptionsArgs(

node_subnet_ids=subnet_ids,
node_associate_public_ip_address=False,
instance_type="t3a.medium",
node_public_key="public_key_here",
node_root_volume_size=8,
node_user_data="""
        #!/bin/bash
        echo "Running custom user data script"
        """,
min_size=1,
max_size=1,
desired_capacity=1,
gpu=False,
auto_scaling_group_tags={"Name": node_group, "Stack": stack},
        node_security_group=eks_node_group_sg,
    ),
)