creamy-beach-53040
04/26/2023, 1:38 PMcluster = peks.Cluster(
f"cluster-{project_name}-{stack_name}",
vpc_id=vpc.vpc_id,
subnet_ids=kube_subnets,
node_associate_public_ip_address=False,
enabled_cluster_log_types=[
"api",
"audit",
"authenticator",
],
tags=tags,
node_group_options=peks.ClusterNodeGroupOptionsArgs(
extra_node_security_groups=[db_security_group.id],
min_size=config.get("min_size"),
max_size=config.get("max_size"),
desired_capacity=config.get("desired_capacity"),
instance_type=config.get("instance_type")
),
instance_role=cluster_node_role,
provider_credential_opts=peks.KubeconfigOptionsArgs(profile_name="pulumi")
)
I also tried setting the security group as a parameter of the pulumi_eks.NodeGroupV2 constructor, but it didn't work either. In that case, I got an error message saying the security group didn't exist.
Any ideas on what to try next?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by