IF Commons GitHub

logical/pulumi

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-estate-iac-importers FR-006

Pulumi: the JSON of pulumi stack export. Every resource except the stack and the providers is a cloud resource whose provider and type come from its type token (aws:ec2/instance:Instance is the provider aws, the type ec2/instance:Instance), and the links are the dependencies and the parent of each. Only the type and the identifier are copied: the inputs and the outputs of a resource, which hold secrets, are not.

import { importPulumi } from "./pulumi.ts";
importPulumi("stack.json", JSON.stringify({ deployment: { resources: [] } })).assets; // []

Source: commons/estate-iac/src/logical/pulumi.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

logical.importPulumifunctionno test imports it
function importPulumi(source: string, text: string): Imports

The resources of an exported stack as assets and links.

importPulumifunction
function importPulumi(source: string, text: string): Imports

The resources of an exported stack as assets and links.

Imported by 7 tests of the run (7 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.