glamorous-waitress-51149
12/12/2019, 11:32 AMconfig.requireSecret("databasePassword").get()
but docs suggest not to do thisbroad-dog-22463
12/12/2019, 12:19 PMglamorous-waitress-51149
12/12/2019, 12:21 PMconst databasePassword = config.requireSecret("databasePassword").apply(pwd=>pwd);
broad-dog-22463
12/12/2019, 12:22 PMglamorous-waitress-51149
12/12/2019, 12:22 PMbroad-dog-22463
12/12/2019, 12:23 PMglamorous-waitress-51149
12/12/2019, 12:24 PM{
"name": "aws-typescript",
"devDependencies": {
"@types/node": "12.11.7"
},
"dependencies": {
"@pulumi/aws": "1.14.1",
"@pulumi/awsx": "0.18.14",
"@pulumi/pulumi": "1.7.0",
"@types/mime": "2.0.1",
"mime": "latest"
}
}
tall-librarian-49374
12/12/2019, 3:28 PMglamorous-waitress-51149
12/12/2019, 3:46 PMtall-librarian-49374
12/12/2019, 3:53 PMglamorous-waitress-51149
12/12/2019, 4:03 PMerror: Running program '/Users/jonathan/Projects/Profiles/infra' failed with an unhandled exception:
TSError: ⨯ Unable to compile TypeScript:
index.ts(62,5): error TS2322: Type 'Output<string>' is not assignable to type 'Input<string>'.
Type 'Output<string>' is not assignable to type 'OutputInstance<string>'.
Types of property 'apply' are incompatible.
Type '{ <U>(func: (t: string) => Promise<U>): import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/pulumi/output").Output<U>; <U>(func: (t: string) => import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/pulumi/output").OutputInstance<U>): import("/Users/jonathan/Projects/Profiles/infra/nod...' is not assignable to type '{ <U>(func: (t: string) => Promise<U>): import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/output").Output<U>; <U>(func: (t: string) => import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/output").OutputInstance<...>):...'.
Type 'import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/pulumi/output").Output<any>' is not assignable to type 'import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/output").Output<any>'.
Type 'OutputInstance<any>' is not assignable to type 'Output<any>'.
Type 'OutputInstance<any>' is not assignable to type 'OutputInstance<any> & LiftedObject<any, string>'.
Type 'import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/pulumi/output").OutputInstance<any>' is not assignable to type 'import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/output").OutputInstance<any>'.
Types of property 'apply' are incompatible.
Type '{ <U>(func: (t: any) => Promise<U>): import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/pulumi/output").Output<U>; <U>(func: (t: any) => import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/pulumi/output").OutputInstance<U>): import("/Users/jonathan/Projects/Profiles/infra/node_modu...' is not assignable to type '{ <U>(func: (t: any) => Promise<U>): import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/output").Output<U>; <U>(func: (t: any) => import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/output").OutputInstance<U>): import(...'.
Type 'import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/pulumi/output").Output<any>' is not assignable to type 'import("/Users/jonathan/Projects/Profiles/infra/node_modules/@pulumi/aws/node_modules/@pulumi/pulumi/output").Output<any>'.
Type 'OutputInstance<any>' is not assignable to type 'Output<any>'.
Type 'OutputInstance<any>' is not assignable to type 'OutputInstance<any> & LiftedObject<any, string>'.
Type 'OutputInstance<any>' is not assignable to type 'LiftedObject<any, string>'.
tall-librarian-49374
12/12/2019, 4:04 PMglamorous-waitress-51149
12/12/2019, 4:06 PMtall-librarian-49374
12/12/2019, 4:06 PMType 'OutputInstance<any>
is not assignable to type 'OutputInstance<any>` smells like version conflictglamorous-waitress-51149
12/12/2019, 4:06 PMtall-librarian-49374
12/12/2019, 4:12 PMglamorous-waitress-51149
12/12/2019, 4:21 PMconst databasePassword = config.requireSecret("databasePassword")
const cluster = new aws.rds.Cluster("default", {
masterPassword: databasePassword,
tall-librarian-49374
12/12/2019, 4:47 PMglamorous-waitress-51149
12/12/2019, 4:48 PMwhite-balloon-205
Type 'Output<string>' is not assignable to type 'Input<string>'.Just opened https://github.com/pulumi/pulumi/issues/3652 which is tracking this. There is a workaround in the issue thread.
glamorous-waitress-51149
12/12/2019, 8:03 PMwhite-balloon-205
@pulumi/pulumi
? I suspect there is one nestled under @pulumi/aws
in your node_modules based on the error above. I’d be pretty surprised if this happened on a truly fresh NPM install (without lock files).glamorous-waitress-51149
12/13/2019, 9:18 AM{
"name": "aws-typescript",
"devDependencies": {
"@types/node": "12.11.7"
},
"dependencies": {
"@pulumi/aws": "1.8.0",
"@pulumi/awsx": "0.18.13",
"@pulumi/pulumi": "1.5.2",
"@types/mime": "2.0.1",
"mime": "latest"
}
}