Hi - I'm receiving this error when trying to previ...
# typescript
e
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
Cc @broad-dog-22463.
b
@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
yep will do - thanks!
b
Sorry about that :(
e
Appreciate the help! Here is the issue: https://github.com/pulumi/pulumi-aiven/issues/9
b
Thanks! I will look into it ASAP
seems related
b
@elegant-shampoo-65690 are you around atm?
e
Hey @broad-dog-22463 - I'm available now