stale-tomato-37875
01/02/2025, 6:58 AMquick-house-41860
01/02/2025, 9:42 AMsecurityGroup
a resource you're creating in the same stack or are you looking it up using .get
?
This sounds a lot like this bug https://github.com/pulumi/pulumi/issues/17515 which involves using .get
in components.stale-tomato-37875
01/02/2025, 9:53 AMquick-house-41860
01/02/2025, 9:55 AMquick-house-41860
01/02/2025, 9:56 AMstale-tomato-37875
01/02/2025, 9:59 AMconst test_sg = new aws.ec2.SecurityGroup("test_sg", {
name: "allow_tls",
description: "Allow TLS inbound traffic and all outbound traffic",
});
And I get below issues
aws:iam:InstanceProfile (brainfish-au-instanceProfile):
error: Expected an ID for urn:pulumi:au::brainfish-universe-eks::eks:index:Cluster$aws:iam/instanceProfile:InstanceProfile::brainfish-au-instanceProfile
pulumi:pulumi:Stack (brainfish-universe-eks-au):
error: eks:index:Cluster resource 'brainfish-au' has a problem: grpc: the client connection is closing
stale-tomato-37875
01/02/2025, 9:59 AMquick-house-41860
01/02/2025, 10:03 AMextraNodeSecurityGroups
and using the transforms
resource option to inject the security ID. For more details see https://www.pulumi.com/docs/iac/concepts/options/transforms/quick-house-41860
01/02/2025, 10:04 AMstale-tomato-37875
01/02/2025, 10:14 AMquick-house-41860
01/02/2025, 10:24 AMstale-tomato-37875
01/02/2025, 10:27 AMstale-tomato-37875
01/02/2025, 10:28 AMquick-house-41860
01/02/2025, 10:29 AMstale-tomato-37875
01/03/2025, 3:20 AMquick-house-41860
01/03/2025, 8:29 AMquick-house-41860
01/08/2025, 9:03 AMstale-tomato-37875
01/09/2025, 12:42 AM.get
issue has gone. However I still have a problem with upgrading the pulumi/eks from v2 to v3
The instanceProfile issue stays
Diagnostics:
aws:iam:InstanceProfile (brainfish-au-instanceProfile):
error: Expected an ID for urn:pulumi:au::brainfish-universe-eks::eks:index:Cluster$aws:iam/instanceProfile:InstanceProfile::brainfish-au-instanceProfile
pulumi:pulumi:Stack (brainfish-universe-eks-au):
error: eks:index:Cluster resource 'brainfish-au' has a problem: grpc: the client connection is closing
stale-tomato-37875
01/09/2025, 12:47 AMconst securityGroup = aws.ec2.SecurityGroup.get(
"default",
defaultSecurityGroupId
);
const cluster = new eks.Cluster(`${ORG}-${stack}`, {
vpcId: defaultVpcId,
subnetIds: defaultVpcSubnetsIds,
authenticationMode: "API",
nodeGroupOptions: {
minSize: config.EKS_MIN_WORKER_NODE_NUMBER,
maxSize: config.EKS_MAX_WORKER_NODE_NUMBER,
desiredCapacity: config.EKS_DESIRED_WORKER_NODE_NUMBER,
nodeRootVolumeEncrypted: true,
// amiId: config.EKS_NODE_AMI_ID, // pin Amazon EKS-optimized Amazon Linux 2 AMI to avoid accidental nodes destruction
nodeRootVolumeSize: 100, // 100GB, reasonable default
extraNodeSecurityGroups: [securityGroup], // remove this will resolve the issue
instanceType: config.EKS_NODE_INSTANCE_TYPE,
nodeRootVolumeType: config.EKS_NODE_ROOT_VOLUME_TYPE as
| "standard"
| "gp2"
| "gp3"
| "st1"
| "sc1"
| "io1",
}
});
This is the key code snippet I believe
by removing the look up for the extra security group, the issue will be resolved.stale-tomato-37875
01/09/2025, 12:53 AM@pulumi/pulumi
around aws.ec2.securitygroup
https://github.com/search?q=repo%3Apulumi%2Fpulumi+%22Expected+an+ID+for%22&type=code
I can only find the error was from step_generatorquick-house-41860
01/09/2025, 9:03 AM@pulumi/pulumi
in your node modules? Nevertheless we should transfer this to a GitHub issue so our team can dig into it, do you mind opening an issue here and adding your repro to it, thanks!stale-tomato-37875
01/13/2025, 6:06 AMquick-house-41860
01/13/2025, 11:20 AMpulumi.all([args.extraNodeSecurityGroups]).apply(([sg]) => { ... })
and pulumi.output(args.extraNodeSecurityGroups)
should behave the same way, but there might be some subtleties causing this issue.
I'll start looking into this right away.