jolly-egg-4894
07/16/2019, 12:37 PM.onObjectCreated()
lambda (in typescript) to nodejs10.x
or am I looking at completely recreating the BucketEventSubscription
class?
I’ve looked at the options that are passed through to the handler but it’s just { parent: this }
rapid-eye-32575
07/16/2019, 12:39 PMCustomResource
-objects are broken for me with the current release (I'm using v0.17.22
). I always get the following error:
TypeError: opts.parent.__aliases is not iterable
at new Resource ([...]/node_modules/@pulumi/pulumi/resource.js:117:51)
at new CustomResource ([...]/node_modules/@pulumi/pulumi/resource.js:270:9)
at new Resource ([...]/node_modules/@pulumi/pulumi/dynamic/index.js:40:9)
at new DatabaseUser ([...]/src/database/database-user.ts:7:9)
at [...]/src/database/gcp/gcp-database-cluster.ts:64:13
The instance of GCPDatabaseCluster
(which has no aliases) is the parent of a DatabaseUser
(again without aliases). Maybe this has something to do with the new feature of renaming resources (https://github.com/pulumi/pulumi/pull/2774)? Has anyone seen a similar behavior? The code still worked last week ago 🤔flaky-engine-87606
07/16/2019, 2:18 PMgcp:storage:BucketACL (bucket-acl):
error: Plan apply failed: all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 127.0.0.1:52527: connect: connection refused"
boundless-monkey-50243
07/16/2019, 5:42 PM--debug
is not particularly helpful. Is there a way to get more information, like "what resource is wrong"?handsome-actor-1155
07/16/2019, 6:41 PMconst ecr = new aws.ecr.Repository("ecr", {
name: "stream-app/corrective-action-producer"
});
const ecrCreds = ecr.registryId.apply(async (registryId) => {
const credentials = await aws.ecr.getCredentials({
registryId: registryId,
});
const decodedCredentials = Buffer.from(credentials.authorizationToken, "base64").toString();
const [username, password] = decodedCredentials.split(":");
return { server: credentials.proxyEndpoint, username, password };
});
return new docker.Image("correctiveActionProducer", {
imageName: ecr.repositoryUrl,
build: "./",
registry: ecrCreds
});
broad-dog-22463
07/16/2019, 9:57 PMbored-river-53178
07/17/2019, 8:24 AMglamorous-waitress-51149
07/17/2019, 1:26 PMrapid-eye-32575
07/17/2019, 1:28 PMpulumi up
in a typescript project utilizing @pulumi/pulumi-kubernetes
, the preview shows that all Kubernetes resources would be replaced, since the <http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: pulumi
label ought to be removed. The details show changes along the line of:
[provider: urn:pulumi:dev::project::eks:index:Cluster$pulumi:providers:kubernetes::project-dev-provider::617c0adc-0f4b-47cc-8e2a-319f67902782 => urn:pulumi:dev::project::eks:index:Cluster$pulumi:providers:kubernetes::project-dev-provider::output<string>]
~ metadata : {
- labels : {
- <http://app.kubernetes.io/managed-by|app.kubernetes.io/managed-by>: "pulumi"
}
}
In another project with the same package versions (0.25.2
) this doesn't happen, however. Has anyone seen a similar behaviour or has an idea what might be causing this?salmon-beard-79336
07/17/2019, 2:02 PMincalculable-angle-91273
07/17/2019, 5:37 PM@pulumi/kubernetes
version 0.25.2 I’m seeing this error:
warning: resource plugin kubernetes is expected to have version >=0.25.2, but has 0.25.1-dev.1561392430+g1853784.dirty; the wrong version may be on your path, or this may be a bug in the plugin
I tried removing all plugins with pulumi plugin rm --all
and then reinstalling with npm i
to refresh it but I still get the warning. Is the package set up to install the correct plugin?cuddly-barista-79466
07/17/2019, 7:50 PMlemon-greece-30910
07/17/2019, 8:10 PM<http://example.com|example.com>
) to a service (like the example on: `https://www.pulumi.com/docs/reference/tutorials/aws/tutorial-service`)?cool-egg-852
07/17/2019, 8:12 PMCannot read property name of undefined
with envFrom: configMaps.map(function(configMap) {
return {
configMapRef: {
name: configMap.metadata.name
}
};
}),
where configMaps
is an array of resources.cool-egg-852
07/17/2019, 8:12 PMcool-egg-852
07/17/2019, 8:17 PMcool-egg-852
07/17/2019, 8:17 PMglamorous-printer-66548
07/17/2019, 10:56 PM+-gcp:compute/instance:Instance: (replace)
[id=vpn-00a]
[urn=urn:pulumi:gcp-project-solvvy-prod::gcp-project-solvvy-prod::gcp:compute/instance:Instance::instance]
~ networkInterfaces: [
~ [0]: {
+ __defaults : []
~ accessConfigs: [
~ [0]: {
+ __defaults: []
natIp : "32.247.25.46"
}
]
networkIp : "10.0.16.10"
subnetwork : "us-west1/vpn-subnetwork"
}
]
there's absolutely 0 change on that resource except that i upgraded the pulumi gcp version
do you have a quick idea how to resolve this? I'm fine editing the state if that helps, but I need to know what the state should look like for pulumi to not trigger a replace.glamorous-printer-66548
07/17/2019, 10:58 PMconst vpnInstance = new gcp.compute.Instance(
'instance',
{
name: 'vpn-00a',
zone: 'us-west2-b',
machineType: 'n1-standard-1',
canIpForward: true,
deletionProtection: true,
metadata: {
'startup-script-url': startupScriptURL
},
scheduling: {
automaticRestart: true
},
bootDisk: {
initializeParams: {
image: 'ubuntu-os-cloud/ubuntu-minimal-1804-lts',
},
},
networkInterfaces: [{
subnetwork: vpnSubNetwork.id,
networkIp: vpnInternalStaticIP,
accessConfigs: [{
natIp: vpnExternalIP.address
}]
}],
serviceAccount: {
scopes: ['<https://www.googleapis.com/auth/cloud-platform>'],
},
},
{ dependsOn: [vpnFirewall] });
cool-egg-852
07/18/2019, 1:32 AMcolossal-beach-47527
07/18/2019, 4:15 AMfast-motherboard-21624
07/18/2019, 4:36 AMglobal.d.ts
declaration file. TSC in vscode understands the declartion is there but pulumi
doesn't seem tofast-motherboard-21624
07/18/2019, 4:36 AMfast-motherboard-21624
07/18/2019, 4:36 AMrapid-eye-32575
07/18/2019, 7:48 AMnew eks.Cluster(stackName, {
instanceType: "t2.medium",
desiredCapacity: 2,
minSize: 2,
maxSize: 4,
nodeRootVolumeSize: 60
});
and that code hasn't changed in months. Does anybody have an idea what might be going on and how to fix this? The preview just states that the provider will be replaced but no diff is provided.colossal-yacht-76770
07/18/2019, 12:11 PMcool-egg-852
07/18/2019, 3:42 PMroles/errorreporting.viewer
? Does this have to be done as a project iammember policy?clever-nest-47198
07/18/2019, 5:32 PMelb = elb.LoadBalancer(resource_name=elb_name, opts=resource_opts, internal=scheme, name=elb_name, listeners=listeners, tags=tags)The ELB I have configured in AWS explicitly has configuration I have not set here ^ however, Pulumi preview/up think that my state defined in Python 100% matches the state from AWS. I'm missing ELBHealthchecks, security groups, AZ's, and a bunch of other options. I'm surprised Pulumi didn't yell at me that I was missing these settings?
clever-nest-47198
07/18/2019, 5:33 PMclever-nest-47198
07/18/2019, 5:35 PMclever-nest-47198
07/18/2019, 5:35 PMbroad-dog-22463
07/18/2019, 5:47 PM