I have the following if i destroy my stack and re...
# general
r
I have the following if i destroy my stack and rebuild the nodegroup creation hangs until timeout if i delete the nodegroup and pulumi refresh and run it again it succeeds it seems there is some issue on detecting the the node_role_arn is available I see it creates in seconds in the console additionally after the refresh if I run again the node group creates in approx 90 secs and the time out issue goes away any ideas ?
Copy code
# makes ARN a string
# hard coding post initial run works so added string and depends on for NG # makes ARN for ng
# at deploy this should take longer than 200secs max
node_group_role_arn = node_group_role.arn.apply(lambda arn: f"{arn}")


# added depends on node_group role arn 
node_group = aws.eks.NodeGroup(
    resource_name=f"{config['cluster_name']}-node-group",
    cluster_name=eks_cluster.core.cluster.name,
    node_role_arn=node_group_role_arn,  # Explicitly resolved as string
    subnet_ids=[public_subnet_1.id, public_subnet_2.id],
    scaling_config=aws.eks.NodeGroupScalingConfigArgs(
        desired_size=config['desired_capacity'],
        min_size=config['min_size'],
        max_size=config['max_size'],
    ),
    instance_types=[config['instance_type']],
    disk_size=config['node_root_volume_size'],
    ami_type="AL2_x86_64",  # Amazon Linux 2 x86_64
    capacity_type="ON_DEMAND",
    node_group_name=f"{config['cluster_name']}-node-group",
    labels={"Name": "eks-managed-node-group"},
    opts=pulumi.ResourceOptions(depends_on=[node_group_role, eks_cluster])
)