elegant-window-55250
12/13/2019, 3:25 PMk8s.apiextensions.CustomResource
and need to get the status
output from that API resource. How do I get that? I can see information from metadata
and spec
but I’m not able to get status
. I do also see the status is available in Pulumi Console.handsome-cat-98152
12/16/2019, 2:47 PMcurved-pharmacist-41509
12/16/2019, 10:29 PMelegant-shampoo-65690
12/17/2019, 3:15 PM└─ 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
gorgeous-animal-95046
12/19/2019, 3:23 PMinterpolate
and I can't figure out what I'm doing wrong. Here's my code: https://gist.github.com/zombor/43cd30735aa72bc02be4ef878aa073c6
I'm guessing this has to do with some kind of aysnc problem, but the docs on interpolate
suggest this should "just work". Anyone know what I'm doing wrong? I would expect the output of foo
on L25 to be either undefined
or some kind of actual string.acceptable-army-69872
12/19/2019, 3:51 PMworried-engineer-33884
12/20/2019, 5:30 PMtypeof myStringOutput === "object"
is there a way to test for pulumi.Output<string> in a guard or something?chilly-crayon-57653
12/20/2019, 8:30 PMplain-night-8063
01/03/2020, 3:52 PMlimited-rainbow-51650
01/04/2020, 12:15 PMimport
property and when running pulumi, I get a succesful import:
= ├─ gitlab:index:Group cumundi imported
But in this run, I had errors on wrong user id’s for group memberships. So I fixed the import IDs, ran preview
and now I get this:
+- ├─ gitlab:index:Group cumundi replace
Why does it want to replace the Gitlab group? Is this a general Pulumi problem or a Gitlab provider problem? /cc @broad-dog-22463limited-rainbow-51650
01/04/2020, 12:16 PMreplace
state, I unfortunately executed up
and the provider has dropped my Gitlab group with some manually created repositories in it. All lost… 😞broad-dog-22463
01/04/2020, 1:48 PMflaky-father-99093
01/07/2020, 1:28 AMapply
... but that doesn't seem to actually let me wind up with a string 🙂stocky-island-3676
01/08/2020, 4:04 PMimport * as gcp from '@pulumi/gcp'
^^^^^^
SyntaxError: Cannot use import statement outside a module
from a dependency
saved in Github repo. What am I missing?limited-rainbow-51650
01/09/2020, 2:49 PMpulumi.ComponentResource
subclass, how can I define the opts
so I have the same VSCode IntelliSense as for the default Pulumi libs. Example could be handy. 😉acceptable-army-69872
01/10/2020, 6:36 PMfunction getIp (server: aws.ec2.Instance) {
return pulumi.all([server.privateIp]).apply(([privateIp]) => {
return pulumi.interpolate`${privateIp}`;
});
}
to get the IP, but it still gives me the calling toString on an output error instead of the value. Thoughts on how to do this?handsome-truck-95168
01/13/2020, 10:45 PMURL
class from node (in a lambda, if it makes a difference). But neither import { URL} from "url"
nor require("url")
works. Here is my package.json
, what am I missing:
{
"name": "deploy",
"devDependencies": {
"@types/lodash": "^4.14.144",
"@types/mime": "^2.0.1",
"@types/moment": "^2.13.0",
"@types/node": "^10.17.13"
},
"dependencies": {
"@Pulumi Team/aws": "^1.0.0",
"@Pulumi Team/awsx": "^0.18.10",
"@Pulumi Team/pulumi": "^1.0.0",
"aws-sdk": "^2.602.0",
"lodash": "^4.17.14",
"mime": "^2.4.0"
}
}
ambitious-ram-5811
01/13/2020, 10:49 PMurl
is a builtin module to nodeambitious-ram-5811
01/13/2020, 10:50 PMimport * as URL from 'url'
astonishing-cartoon-37000
01/14/2020, 10:21 PM@pulumi/datadog
specifically SyntheticsTest
class. Thread for more explaination.handsome-cat-98152
01/15/2020, 12:04 PMplain-eye-9759
01/16/2020, 10:37 AMError Expanding the parameters_body for Azure RM Template Deployment
I have also tried passing the parameters directly with no success.
Please help!
const deployment = new azure.core.TemplateDeployment(name, {
resourceGroupName: args.resourceGroupName,
name,
templateBody: pulumi.output(template).apply(JSON.stringify),
// parametersBody: "params.json",
// parametersBody: {
// "certContent": {
// "reference": {
// "keyVault": {
// "id": "/id-of-the-keyvault"
// },
// "secretName": "SecretName"
// }
// }
// },
deploymentMode: "Incremental",
}, { parent: this });
adamant-postman-86832
01/16/2020, 4:42 PMadamant-postman-86832
01/16/2020, 4:46 PMfuture-megabyte-14556
01/22/2020, 10:05 AMexport const db = new aws.rds.Instance(`${config.PROJECT_NAME}-postgres`, {
engine: "postgres",
instanceClass: "db.t2.small",
allocatedStorage: 20,
dbSubnetGroupName: dbSubnets.id,
vpcSecurityGroupIds: [cluster.clusterSecurityGroup.id],
name: config.POSTGRES_DB_NAME,
username: config.POSTGRES_USERNAME,
password: config.POSTGRES_PASSWORD,
skipFinalSnapshot: true,
publiclyAccessible: true
});
const username = db.username.apply(un => `${un}`);
const password = db.password.apply(pw => `${pw}`);
const address = db.address.apply(addr => `${addr}`);
const port = db.port.apply(port => `${port}`);
const name = db.name.apply(name => `${name}`);
const connectionUrl = `postgres://${username}:${password}@${address}:${port}/${name}`;
// Create a secret from the DB connection
export const dbConn = new k8s.core.v1.Secret(
"postgres-db-conn",
{
data: {
dbConnectionUrl: Buffer.from(connectionUrl).toString("base64")
}
},
{ provider: cluster.provider }
);
cuddly-smartphone-89735
01/22/2020, 3:33 PMworried-engineer-33884
01/22/2020, 6:31 PMaws.Provider
have a region
output, but TS throws:
2339: Property 'region' does not exist on type 'Provider'.
worried-engineer-33884
01/22/2020, 8:24 PMdescribe("my custom resource", () => {
it("has outputs", function(done) {
pulumi
.all([myCustomResource.someOutput])
.apply(([someOutput]) => {
try {
assert.equal(someOutput, "foobar");
done();
} catch (e) {
done(e);
}
});
});
});
I am seeing these errors:
Error calling "Runtime.evaluate(global.__inflightFunctions.id0)": Uncaught
at node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:123:23
at fulfilled (node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:18:58)
Error calling "Runtime.evaluate(global.__inflightFunctions.id1)": Uncaught
at node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:123:23
at fulfilled (node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:18:58)
Error calling "Runtime.evaluate(global.__inflightFunctions.id2)": Uncaught
at node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:123:23
at fulfilled (node_modules/@pulumi/pulumi/runtime/closure/v8_v11andHigher.js:18:58)
future-megabyte-14556
01/26/2020, 9:03 AMaws:ec2:SecurityGroup cluster-pulumi-test-nodeSecurityGroup **deleting failed** 1 error
Error deleting security group: DependencyViolation: resource sg-08f756b4c56c49dfc has a dependent object
status code: 400
That dependent object is a network interface; if you delete that manually everything works. Getting this fairly consistently.narrow-dinner-88865
01/26/2020, 10:50 PMTypeError: this.getData is not a function
at new Vpc (C:\projects\infra\node_modules\@pulumi\ec2\vpc.ts:276:27)
at Function.fromExistingIds (C:\projects\infra\node_modules\@pulumi\ec2\vpc.ts:367:16)
trying to execute const vpc = awsx.ec2.Vpc.fromExistingIds("primary-vpc", { vpcId: "vpc-xxx" }, { provider: provider });
package.json is:
{
"name": "aws-typescript",
"devDependencies": {
"@types/node": "^12.12.25"
},
"dependencies": {
"@pulumi/aws": "1.18.0",
"@pulumi/awsx": "0.19.0",
"@pulumi/pulumi": "1.8.1"
}
}
Could someone help with this?narrow-dinner-88865
01/26/2020, 10:50 PMTypeError: this.getData is not a function
at new Vpc (C:\projects\infra\node_modules\@pulumi\ec2\vpc.ts:276:27)
at Function.fromExistingIds (C:\projects\infra\node_modules\@pulumi\ec2\vpc.ts:367:16)
trying to execute const vpc = awsx.ec2.Vpc.fromExistingIds("primary-vpc", { vpcId: "vpc-xxx" }, { provider: provider });
package.json is:
{
"name": "aws-typescript",
"devDependencies": {
"@types/node": "^12.12.25"
},
"dependencies": {
"@pulumi/aws": "1.18.0",
"@pulumi/awsx": "0.19.0",
"@pulumi/pulumi": "1.8.1"
}
}
Could someone help with this?v12.14.1
v1.9.0
{
"name": "aws-typescript",
"devDependencies": {
"@types/node": "^12.12.6"
},
"dependencies": {
"@pulumi/aws": "^1.7.0",
"@pulumi/awsx": "^0.18.13",
"@pulumi/pulumi": "^1.4.1"
}
}
But I need more recent versions to pass VPC to a Fargate service.0.18.14
on 0.19.x
it doesn't workwhite-balloon-205
01/26/2020, 11:52 PMnarrow-dinner-88865
01/27/2020, 10:09 AM