nice-toothbrush-68985
12/17/2025, 6:21 PMManagedNodeGroup and NodeGroupV2 (using python)
I want to add an extra security group from a stack reference, but the node groups require the pulumi_aws.ec2.SecurityGroup class, but a stack reference serialize the class as dict,
but even when using aws.ec2.get_security_group_output(id=stack_ref_sg['id']) or aws.ec2.get_security_group(id=stack_ref_sg['id']) as input for extra_node_security_groups the program still breaks..
How can I pass a pre-existing security group to the module?curved-jordan-5346
12/18/2025, 1:50 AMnice-toothbrush-68985
12/18/2025, 8:43 AMpulumi_aws.ec2.SecurityGroup without any further processing\overloading with Union[]nice-toothbrush-68985
12/18/2025, 9:01 AMpulumi.export("ec2ice_sg", ec2_instance_connect_endpoint_security_group)
--------
ec2ice_sg = stack_ref.get_output("ec2ice_sg")
...
extra_node_security_groups=[ec2ice_sg['id']],
...
Diagnostics:
aws:ec2:LaunchTemplate (infrastructure-launchTemplate):
error: sdk-v2/provider2.go:572: sdk.helper_schema: Null value found in list: Null values are not allowed for this attribute value.: provider=aws@7.10.0
error: diffing urn:pulumi:dev::EKS::eks:index:NodeGroupV2$aws:ec2/launchTemplate:LaunchTemplate::infrastructure-launchTemplate: 1 error occurred:
* [network_interfaces[0].security_groups] Null value found in list: Null values are not allowed for this attribute value.nice-toothbrush-68985
12/18/2025, 9:02 AMpulumi.Output or ec2ice_sg.apply() have the same resultnice-toothbrush-68985
12/18/2025, 9:03 AMcurved-jordan-5346
12/18/2025, 9:04 AMnice-toothbrush-68985
12/18/2025, 9:05 AMnice-toothbrush-68985
12/18/2025, 9:08 AMresource_name ?
get(resource_name: str,
id: pulumi.Input[str]
...nice-toothbrush-68985
12/18/2025, 9:08 AMsg = aws.ec2.SecurityGroup.get('sg', id=ec2ice_sg['id'])curved-jordan-5346
12/18/2025, 9:10 AMcurved-jordan-5346
12/18/2025, 9:10 AMnice-toothbrush-68985
12/18/2025, 9:11 AMcurved-jordan-5346
12/18/2025, 9:12 AMnice-toothbrush-68985
12/18/2025, 9:12 AMnice-toothbrush-68985
12/18/2025, 9:14 AMpulumi:pulumi:Stack EKS-dev
├─ eks:index:NodeGroupV2 infrastructure
~ │ ├─ aws:ec2:LaunchTemplate infrastructure-launchTemplate update [diff: ~latestVersion,networkInterfaces]
~ │ └─ aws:autoscaling:Group infrastructure update [diff: ~launchTemplate]
~ ├─ aws:eks:Addon external-dns update [diff: +tagsAll]
+ ├─ aws:eks:Addon guardduty create
~ ├─ aws:eks:Addon metrics-server update [diff: +tagsAll]
~ ├─ aws:eks:Addon ebs update [diff: +tagsAll]
~ ├─ aws:eks:Addon efs update [diff: +tagsAll]
└─ eks:index:Cluster dev
+- └─ pulumi:providers:kubernetes dev-eks-k8s replacenice-toothbrush-68985
12/18/2025, 9:14 AMcurved-jordan-5346
12/18/2025, 9:15 AMnice-toothbrush-68985
12/18/2025, 9:16 AMresource_name was just arbitrary, no relevance.. so any string will do I guessnice-toothbrush-68985
12/18/2025, 9:16 AMcurved-jordan-5346
12/18/2025, 9:16 AM