https://pulumi.com logo
#typescript
Title
# typescript
e

elegant-shampoo-65690

12/17/2019, 3:15 PM
Hi - I'm receiving this error when trying to preview deployment of aiven pg service:
└─ pulumi:providers:aiven       default_1_1_0                     1 error
Diagnostics:
pulumi:providers:aiven (default_1_1_0):
error: could not read plugin [/.pulumi/plugins/resource-aiven-v1.1.0/pulumi-resource-aiven] stdout: EOF
pulumi:pulumi:Stack (gcloud-dev):
panic: Failed to read service_user_config_schema.json: stat templates/service_user_config_schema.json: no such file or directory
goroutine 1 [running]:
<http://github.com/aiven/terraform-provider-aiven/aiven.readUserConfigJSONSchema(0x208fafa|github.com/aiven/terraform-provider-aiven/aiven.readUserConfigJSONSchema(0x208fafa>, 0x1f, 0x205720d)
/home/travis/gopath/pkg/mod/github.com/pulumi/terraform-provider-aiven@v1.0.18-0.20191112055150-1b033b27c5e8/aiven/user_config.go:17 +0x313
<http://github.com/aiven/terraform-provider-aiven/aiven.GetUserConfigSchema(0x205720d|github.com/aiven/terraform-provider-aiven/aiven.GetUserConfigSchema(0x205720d>, 0x7, 0x205bbc4)
/home/travis/gopath/pkg/mod/github.com/pulumi/terraform-provider-aiven@v1.0.18-0.20191112055150-1b033b27c5e8/aiven/user_config.go:41 +0x1a0
<http://github.com/aiven/terraform-provider-aiven/aiven.init()|github.com/aiven/terraform-provider-aiven/aiven.init()>
/home/travis/gopath/pkg/mod/github.com/pulumi/terraform-provider-aiven@v1.0.18-0.20191112055150-1b033b27c5e8/aiven/resource_service.go:139 +0x318c
💯 1
I've verified pulumi-resource-aiven exists.
Here is my file:
import * as pulumi from '@pulumi/pulumi';
import * as aiven from '@pulumi/aiven';
import * as random from '@pulumi/random';
interface Postgres {
plan: string;
cloudName: string;
}
const config = new pulumi.Config('aiven');
const postgresConfig = config.requireObject<Postgres>('postgres');
export const service = new aiven.Service('postgres', {
project: 'ware2go',
cloudName: postgresConfig.cloudName,
plan: postgresConfig.plan,
`serviceName:
${pulumi.getStack()}-postgres
,`
serviceType: 'postgres',
pgUserConfig: {
adminUsername: 'master',
adminPassword: new random.RandomPassword('postgresAdminPassword', {
length: 20,
special: true,
overrideSpecial: '/@',
}).result,
},
});
w

white-balloon-205

12/17/2019, 3:18 PM
Cc @broad-dog-22463.
b

broad-dog-22463

12/17/2019, 3:21 PM
@elegant-shampoo-65690 can you open an issue in the repo and tag me in it with that code?
I can then look at what the problem is
e

elegant-shampoo-65690

12/17/2019, 3:21 PM
yep will do - thanks!
b

broad-dog-22463

12/17/2019, 3:22 PM
Sorry about that :(
e

elegant-shampoo-65690

12/17/2019, 3:25 PM
Appreciate the help! Here is the issue: https://github.com/pulumi/pulumi-aiven/issues/9
b

broad-dog-22463

12/17/2019, 4:29 PM
Thanks! I will look into it ASAP
seems related
b

broad-dog-22463

12/20/2019, 5:06 PM
@elegant-shampoo-65690 are you around atm?
e

elegant-shampoo-65690

12/20/2019, 7:08 PM
Hey @broad-dog-22463 - I'm available now