-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support NestedStack
s (cannot create eks.Cluster
)
#80
Comments
I can confirm that example is not working as-is. I see the same error as reported. I have a hunch that this could be related to which specific versions of packages are resolved. Unfortunately we don't have a lock file in that example so can't reproduce the environment which was used when it was working. From a quick test all versions back unto v2.56.0 fails with the same error. For versions v2.55.0 and below I get the error:
|
gist of my package-lock.json in case it helps. |
The issue here is that we don't support A simpler example that also doesn't work is this: import * as core from 'aws-cdk-lib/core';
import * as pulumi from '@pulumi/pulumi';
import * as pulumicdk from '@pulumi/cdk';
import { Construct } from "constructs";
import * as s3 from 'aws-cdk-lib/aws-s3';
import * as pulumiaws from "@pulumi/aws-native";
class Nesty extends core.NestedStack {
constructor(scope: Construct, id: string, props?: core.NestedStackProps) {
super(scope, id, props);
const bucket = new s3.Bucket(this, "bucket", {});
}
}
class RootStack extends pulumicdk.Stack {
nestedStackId: pulumi.Output<string>;
constructor(id: string, options?: pulumicdk.StackOptions) {
super(id, options);
const x = new Nesty(this, "nesty", {});
this.nestedStackId = this.asOutput(x.stackId);
this.synth();
}
}
export const nestedStackId = pulumiaws.getAccountId().then(account => {
const stack = new RootStack('teststack', {
props: {
env: {
region: pulumiaws.config.region,
account: account.accountId,
}
}
});
return stack.nestedStackId;
}); I tested out a very simple change which just treats the nested stacks as independent I'll re-title this issue to use to track adding support for NestedStacks. |
NestedStack
s - cannot create eks cluster in pulumicdk.Stack
NestedStack
s - cannot create eks cluster in pulumicdk.StackNestedStack
s (cannot create eks cluster in pulumicdk.Stack)
NestedStack
s (cannot create eks cluster in pulumicdk.Stack)NestedStack
s (cannot create eks.Cluster
)
This issue has been addressed in PR #295 and shipped in release v1.4.0. |
What happened?
Attempted to create EKS cluster using the ecs cluster as an example
Instead of resources being created, it failed with
Expected Behavior
Resources are created correctly
Steps to reproduce
pulumi preview
orpulumi up
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: