incalculable-engineer-92975
01/09/2020, 7:08 PMI'm trying to use structured config w/pulumi 1.8.1 and not getting anywhere, I keep getting invalid JSON errors:
config:
acoustic-florist-12628
01/09/2020, 7:35 PMincalculable-engineer-92975
01/09/2020, 8:16 PMacoustic-florist-12628
01/09/2020, 8:26 PMconfig:
aws:region: us-east-1
configtest:app-names: |-
foo-app
configtest:repos:
- name: "root"
account: "xxxxx"
untaggedExpireDays: 7
mutableTags: true
trustRelationships: [ "xxxxx", "xxxxx", "xxxxx", "xxxxx", "xxxxx" ]
- name: "dev"
account: "xxxxx"
untaggedExpireDays: 14
mutableTags: true
trustRelationships: [ "xxxxx", "xxxxx", "xxxxx", "xxxxx", "xxxxx" ]
index.ts:
import * as pulumi from "@pulumi/pulumi";
interface Repo {
name: string,
account: string,
untaggedExpireDays: number,
mutableTags: boolean,
trustRelationships: string[]
}
const config = new pulumi.Config();
const objects = config.requireObject<Repo[]>("repos");
console.log(objects);
incalculable-engineer-92975
01/09/2020, 10:01 PM