2023-03-08 23:34:15 +00:00
|
|
|
import * as pulumi from "@pulumi/pulumi";
|
2023-07-27 13:15:27 +00:00
|
|
|
import { AnotherComponent } from "./another-component";
|
2023-03-09 13:28:55 +00:00
|
|
|
import { ExampleComponent } from "./exampleComponent";
|
|
|
|
import { SimpleComponent } from "./simpleComponent";
|
2023-03-08 23:34:15 +00:00
|
|
|
|
2023-03-09 13:28:55 +00:00
|
|
|
const simpleComponent = new SimpleComponent("simpleComponent");
|
2023-12-14 15:43:27 +00:00
|
|
|
const multipleSimpleComponents: SimpleComponent[] = [];
|
|
|
|
for (const range = {value: 0}; range.value < 10; range.value++) {
|
|
|
|
multipleSimpleComponents.push(new SimpleComponent(`multipleSimpleComponents-${range.value}`));
|
|
|
|
}
|
2023-07-27 13:15:27 +00:00
|
|
|
const anotherComponent = new AnotherComponent("anotherComponent");
|
2023-03-20 19:56:24 +00:00
|
|
|
const exampleComponent = new ExampleComponent("exampleComponent", {
|
|
|
|
input: "doggo",
|
|
|
|
ipAddress: [
|
|
|
|
127,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
1,
|
|
|
|
],
|
|
|
|
cidrBlocks: {
|
|
|
|
one: "uno",
|
|
|
|
two: "dos",
|
|
|
|
},
|
2023-03-23 22:25:21 +00:00
|
|
|
githubApp: {
|
|
|
|
id: "example id",
|
|
|
|
keyBase64: "base64 encoded key",
|
|
|
|
webhookSecret: "very important secret",
|
|
|
|
},
|
|
|
|
servers: [
|
|
|
|
{
|
|
|
|
name: "First",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Second",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
deploymentZones: {
|
|
|
|
first: {
|
|
|
|
zone: "First zone",
|
|
|
|
},
|
|
|
|
second: {
|
|
|
|
zone: "Second zone",
|
|
|
|
},
|
|
|
|
},
|
2023-03-20 19:56:24 +00:00
|
|
|
});
|
2023-03-08 23:34:15 +00:00
|
|
|
export const result = exampleComponent.result;
|