Skip to content

Commit

Permalink
simplify integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
flostadler committed Dec 18, 2024
1 parent 85c8586 commit c6411f2
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions integration/nested-stacks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,16 @@ const region = pulumiaws.getRegionOutput().name;


class MyApp extends pulumicdk.App {
constructor(account: string, region: string) {
super('app', (scope: pulumicdk.App): pulumicdk.AppOutputs => {
const stack = new RootStack(this, 'teststack', {
// configure the environment to prevent the bucket from using the unsupported FindInMap intrinsic (TODO[pulumi/pulumi-cdk#187])
props: {
env: {
account: account,
region: region,
}
}
});
constructor() {
super('app', (_: pulumicdk.App): pulumicdk.AppOutputs => {
const stack = new RootStack(this, 'teststack');
return {
bucketWebsiteUrl: stack.bucketWebsiteUrl,
};
});
}
}

const app = pulumi.all([accountId, region]).apply(([account, region]) => {
return new MyApp(account,region);
});
const app = new MyApp();

export const bucketWebsiteUrl = app.outputs['bucketWebsiteUrl'];

0 comments on commit c6411f2

Please sign in to comment.