mirror of https://github.com/pulumi/pulumi.git
17 lines
555 B
TypeScript
17 lines
555 B
TypeScript
import * as pulumi from "@pulumi/pulumi";
|
|
import * as unknown from "@pulumi/unknown";
|
|
|
|
const provider = new pulumi.providers.Unknown("provider", {});
|
|
const main = new unknown.index.Main("main", {
|
|
first: "hello",
|
|
second: {
|
|
foo: "bar",
|
|
},
|
|
});
|
|
const fromModule: unknown.eks.Example[] = [];
|
|
for (const range = {value: 0}; range.value < 10; range.value++) {
|
|
fromModule.push(new unknown.eks.Example(`fromModule-${range.value}`, {associatedMain: main.id}));
|
|
}
|
|
export const mainId = main.id;
|
|
export const values = fromModule.values.first;
|