adamant-motorcycle-76548
05/03/2020, 11:00 AMgray-tailor-20387
05/03/2020, 2:25 PMerror: [resource plugin digitalocean-2.1.0-alpha.1586903880] downloading from <https://api.pulumi.com/releases/plugins>: 404 HTTP error fetching plugin from <https://api.pulumi.com/releases/plugins/pulumi-resource-digitalocean-v2.1.0-alpha.1586903880-linux-amd64.tar.gz>
How do i fix this? Preferrably i'd actually use pulumi plugin install resource digitalocean 2.3.0
if possible.gray-tailor-20387
05/03/2020, 3:32 PMpulumi plugin install resource digitalocean 2.3.0
#You can set the environment variable PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1 to get unblocked and load plugins exactly as before.
export PULUMI_ENABLE_LEGACY_PLUGIN_SEARCH=1
Then I manually fixed Providers in stack.json aften export, then importpolite-student-92901
05/04/2020, 6:06 AM<http://networking.gke.io/v1beta2|networking.gke.io/v1beta2>
?rhythmic-lighter-17156
05/04/2020, 9:58 AMswift-lunch-74411
05/04/2020, 9:58 AMnutritious-shampoo-16116
05/04/2020, 10:48 AM<pulumi.output.Output object at 0x7f662973a100>-elb-ssl-listener
is it possible to reference outputs into resources names?white-airport-48392
05/04/2020, 11:26 AMverbose npm v6.14.4
293 error code ELIFECYCLE
294 error syscall spawn
295 error file sh
296 error errno ENOENT
297 error deasync@0.1.19 install: `node ./build.js`
297 error spawn ENOENT
298 error Failed at the deasync@0.1.19 install script.
298 error This is probably not a problem with npm. There is likely additional logging output above.
I use pulumi 2 , I tried with node version 12 and 14 , with same outcome ,
All of this worked fine in my Mac ,
Any idea about this ?mammoth-france-95463
05/04/2020, 3:42 PMalert-processor-41605
05/04/2020, 5:04 PMalert-processor-41605
05/04/2020, 6:15 PM<http://aws.lb|aws.lb>.LoadBalancer
to a new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer
? I am using the typescript package currently. I want to take advantage of the features of aws crosswalk, but it's import that I can use an imported resource of an ALB that already exists in my amazon account. For all the other crosswalk resources, I have used the pattern of creating a non crosswalk resource using the import
option and then passing that in as the argument to create the crosswalk resource. Am I missing something here with the load balancer? As far as I can tell, it will always create a new load balancer and there is no way to pass in an existing one.
To draw a comparison to other resources, when creating a crosswalk cluster, you can pass in an existing aws cluster. If it exists, it will get the cluster and use it, if it doesn't it creates a new cluster. Looking at the source for the load balancer, it seems to always create one no matter what.
Cluster Implementation
https://github.com/pulumi/pulumi-awsx/blob/6e41506897a3d7bf3985beb8ecdc596638047699/nodejs/awsx/ecs/cluster.ts#L49
Load Balancer Implementation
https://github.com/pulumi/pulumi-awsx/blob/6e41506897a3d7bf3985beb8ecdc596638047699/nodejs/awsx/lb/loadBalancer.ts#L42loud-lifeguard-46150
05/05/2020, 3:49 AMdef get_cloud_init(param1, param2, param3):
with open('cloud-init.sh') as f:
return f.read().format(param1=param1, param2=param2, param3=param3)
def swarm_scaleset(role, count=1, instance_type=None):
return pulumi.Output.all(param1, param2, param3).apply(
lambda args: az.compute.ScaleSet(
...
os_profile={
...
'custom_data': get_cloud_init(*args),
...
},
...
)
)
managers = swarm_scaleset('manager', 3, 'Standard_B1ms')
workers = swarm_scaleset('worker', 10, 'Standard_B1ms')
How do people handle this scenario usually?loud-lifeguard-46150
05/05/2020, 4:07 AMdef get_cloud_init(param1, param2, param3):
with open('cloud-init.sh') as f:
return f.read().format(param1=param1, param2=param2, param3=param3)
def swarm_scaleset(role, count=1, instance_type=None):
return az.compute.ScaleSet(
...
os_profile={
...
'custom_data': pulumi.Output.all(param1, param2, param3).apply(
lambda args: get_cloud_init(*args)
)
...
},
...
)
managers = swarm_scaleset('manager', 3, 'Standard_B1ms')
workers = swarm_scaleset('worker', 10, 'Standard_B1ms')
I'm testing it at the moment and it seems to work ok, I'll test it on a fresh install soon (which was the problem before)sparse-intern-71089
05/05/2020, 7:35 AMnutritious-judge-27316
05/05/2020, 8:10 AMnarrow-author-62348
05/05/2020, 10:37 AMexport const secret = k8s.core.v1.Secret.get("kubeconfig", "admin/kubeconfig-for-admin");
export const k8sProvider = new k8s.Provider("new-cluster", {
kubeconfig: secret.stringData["kubeconfig"],
});
But the k8sProvider
does not work as expected, I couldn’t see the kubeconfig field in it. Does anyone know why it is that? I’m pretty sure the kubeconfig was stored as base64 string in the admin/kubeconfig-for-admin
.breezy-cricket-40277
05/05/2020, 11:23 AMglamorous-waitress-52533
05/05/2020, 3:08 PMglamorous-waitress-52533
05/05/2020, 3:24 PMlimited-rainbow-51650
05/05/2020, 3:32 PMpulumi login file://<path>
, does <path>
represent an absolute path, or can I use a relative one too? If so, how? I tried file:./state
, but I only get .pulumi
folder created in my current folder, not in a state
subfolder.wonderful-dog-9045
05/05/2020, 4:30 PMpulumi up
is getting stuck at the preview stage, even if the pulumi program is empty:
$ pulumi up
Previewing update (dev):
Type Name Plan
pulumi:pulumi:Stack empirica-base-dev
System Messages
^C received; cancelling. If you would like to terminate immediately, press ^C again.
^C received; terminating
^C received; terminating
It won't even terminate with Ctrl+C.
How do I troubleshoot this?
I did try reinstalling pulumi. Also tried creating a new stack. Still fails.wonderful-zoo-8760
05/05/2020, 5:57 PMaloof-engine-23345
05/05/2020, 6:27 PMaloof-engine-23345
05/05/2020, 6:27 PMgentle-soccer-81698
05/05/2020, 7:23 PMdependsOn
flag in opts=
for the vSphere cluster resource. Looking through the docs that's where I see the flag but I don't see it in vSphere.gentle-soccer-81698
05/05/2020, 7:28 PMbreezy-parrot-63905
05/05/2020, 7:47 PMclever-night-98510
05/05/2020, 10:06 PMdeleteBeforeReplace
doesn't solve the issue.
Here is the index.js code that I'm producing the error with
const aws = require( '@pulumi/aws' );
const awsx = require( '@pulumi/awsx' );
const api = new awsx.apigateway.API( 'some-name', {
routes: [ {
path: '/something',
method: 'POST',
eventHandler: new aws.lambda.CallbackFunction( 'lambda-test', {
memorySize: 128,
callback: ( event ) => {
console.log( event );
},
description: 'Some description',
} ),
} ],
} );
return {
url: api.url,
};
clever-night-98510
05/05/2020, 10:06 PMError creating Lambda function: ResourceConflictException: Function already existHere are relevant log entries from a Pulumi update that shows a ResourceConflictException happens 5 seconds before the successful deployment, possibly suggesting an issue with timeouts and retries.
@timestamp,@message
2020-05-05 18: 07: 15.676, "{""eventVersion"":""1.05"",""userIdentity"":{""type"":""IAMUser"",""principalId"":""AIDA3SNA767QOR3RN3I4Y"",""arn"":""arn:aws:iam::795443460064:user/chad.ort.snopes.local"",""accountId"":""795443460064"",""accessKeyId"":""AKIA3SNA767QJLIPDJSB"",""userName"":""chad.ort.snopes.local""},""eventTime"":""2020-05-05T17:50:10Z"",""eventSource"":""<http://lambda.amazonaws.com|lambda.amazonaws.com>"",""eventName"":""CreateFunction20150331"",""awsRegion"":""us-west-2"",""sourceIPAddress"":""97.114.75.236"",""userAgent"":""aws-sdk-go/1.29.7 (go1.13.8; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11+compatible (+<https://www.terraform.io>)"",""requestParameters"":{""functionName"":""lambda-test-2d7ed19"",""runtime"":""nodejs12.x"",""role"":""arn:aws:iam::795443460064:role/lambda-test-f532b55"",""handler"":""__index.handler"",""code"":{},""description"":""write events to queue and return 200"",""timeout"":180,""memorySize"":128,""publish"":false,""environment"":{}},""responseElements"":{""functionName"":""lambda-test-2d7ed19"",""functionArn"":""arn:aws:lambda:us-west-2:795443460064:function:lambda-test-2d7ed19"",""runtime"":""nodejs12.x"",""role"":""arn:aws:iam::795443460064:role/lambda-test-f532b55"",""handler"":""__index.handler"",""codeSize"":7957025,""description"":""write events to queue and return 200"",""timeout"":180,""memorySize"":128,""lastModified"":""2020-05-05T17:50:10.334+0000"",""codeSha256"":""Hcc9msmvBw+tYRsWLEEf1wItAJ6UEbRtCXg6QwD49ds="",""version"":""$LATEST"",""environment"":{},""tracingConfig"":{""mode"":""PassThrough""},""revisionId"":""275fde3f-46de-4790-bd08-90f2be49e309"",""state"":""Active"",""lastUpdateStatus"":""Successful""},""requestID"":""37d15659-0d93-4586-80ba-dfce76c82a94"",""eventID"":""47ff845a-105f-4d51-a06b-5c82bed05e57"",""eventType"":""AwsApiCall"",""recipientAccountId"":""795443460064""}"
2020-05-05 18: 07:10.282, "{""eventVersion"":""1.05"",""userIdentity"":{""type"":""IAMUser"",""principalId"":""AIDA3SNA767QOR3RN3I4Y"",""arn"":""arn:aws:iam::795443460064:user/chad.ort.snopes.local"",""accountId"":""795443460064"",""accessKeyId"":""AKIA3SNA767QJLIPDJSB"",""userName"":""chad.ort.snopes.local""},""eventTime"":""2020-05-05T17:51:04Z"",""eventSource"":""<http://lambda.amazonaws.com|lambda.amazonaws.com>"",""eventName"":""CreateFunction20150331"",""awsRegion"":""us-west-2"",""sourceIPAddress"":""97.114.75.236"",""userAgent"":""aws-sdk-go/1.29.7 (go1.13.8; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11+compatible (+<https://www.terraform.io>)"",""errorCode"":""ResourceConflictException"",""errorMessage"":""Function already exist: lambda-test-2d7ed19"",""requestParameters"":{""functionName"":""lambda-test-2d7ed19"",""runtime"":""nodejs12.x"",""role"":""arn:aws:iam::795443460064:role/lambda-test-f532b55"",""handler"":""__index.handler"",""code"":{},""description"":""write events to queue and return 200"",""timeout"":180,""memorySize"":128,""publish"":false,""environment"":{}},""responseElements"":null,""requestID"":""6f0ea757-b48e-4f43-8de2-0d92be3bd2c3"",""eventID"":""a3e9e0ac-643a-41e4-acb4-e26330d9c213"",""eventType"":""AwsApiCall"",""recipientAccountId"":""795443460064""}"
Additional known infoechoing-breakfast-73834
05/06/2020, 12:11 AMechoing-breakfast-73834
05/06/2020, 12:11 AMwhite-balloon-205
05/06/2020, 3:06 AM