billowy-kangaroo-51688
09/15/2020, 6:11 PMdynamodb.name.get()
is not being captured in my Lambdas?many-psychiatrist-74327
09/15/2020, 6:13 PMawsx
, eks
) in TS?
I am bringing up a kubernetes cluster and a few services running in it. I first implemented in Python to learn the framework. Then I re-implemented in TS because there are better libraries. However the latency is very different:
Python, 17 seconds:
$ time pulumi preview
Previewing update (dev)
View Live: (redacted)
Type Name Plan
pulumi:pulumi:Stack kubernetes-dev
(redacted)
Resources:
- 4 to delete
40 unchanged
real 0m17.365s
user 0m1.624s
sys 0m2.881s
TS, almost 2 minutes:
$ time pulumi preview
Previewing update (dev)
View Live: (redacted)
Type Name Plan
pulumi:pulumi:Stack infra-dev
Resources:
70 unchanged
real 1m37.499s
user 0m0.998s
sys 0m1.127s
How can I find out where this latency is coming from?billowy-kangaroo-51688
09/15/2020, 7:39 PMnew aws.lambda.CallbackFunction(
"handler",
{
tags,
memorySize: 128,
role: lambdaRole,
layers: [awsSdkLayer.arn],
callback: (event: APIGatewayProxyEvent) => {
return handlerFactory({
tableName: db.name.get(), // db = result of `new aws.dynamodb.Table`
// [..] more values not being captured
})(event);
},
},
);
Iāve ādownloaded deployment packageā & the actual name of the table is nowhere to be found, I also tried to define const tableName = db.name.get()
before the return handlerFactory
š¤·āāļøhandsome-actor-1155
09/15/2020, 8:21 PMpulumi up
or even pulumi preview
. This would save quite a bit of time. Or is this something I would need to configure within the Dockerfile itself? Thanks!chilly-garage-80867
09/15/2020, 8:23 PMchilly-garage-80867
09/15/2020, 8:24 PMloud-battery-37784
09/15/2020, 8:25 PMchilly-garage-80867
09/15/2020, 8:25 PMbitter-application-91815
09/15/2020, 9:03 PM<https://github.com/pulumi/pulumi-aws/blob/master/sdk/go/aws/eks/nodeGroup.go#L314>
bitter-application-91815
09/15/2020, 9:03 PM// Identifiers of EC2 Subnets to associate with the EKS Node Group. These subnets must have the following resource tag: `<http://kubernetes.io/cluster/CLUSTER_NAME|kubernetes.io/cluster/CLUSTER_NAME>` (where `CLUSTER_NAME` is replaced with the name of the EKS Cluster).`
bitter-application-91815
09/15/2020, 9:04 PMmillions-judge-24978
09/15/2020, 9:15 PMaws.lambda.Function
using go code, is there a way to automate the go build
as part of the pulumi program running?
I see this:
Using Pulumiās Asset and Archive classes, we can fetch code from anywhere ā in-memory, on disk, or even over the network. Pulumi will detect changes in the contents of these assets and archives so that when you run pulumi up, diffs will be detected and updated.It seems to me though that would be missing the necessary
go build
thoughfast-magician-55948
09/15/2020, 9:18 PMfast-magician-55948
09/15/2020, 9:28 PMfast-magician-55948
09/15/2020, 9:34 PMred-area-47037
09/15/2020, 10:16 PMkind-mechanic-53546
09/16/2020, 3:13 AMawait
a resource creation?
I have to render a helm chart to a directory via renderYamlToDirectory
of k8s.Provider
and then take the output of that directory filtered via fs.promises.readdir
filtered then passed to k8s.yaml.ConfigGroup
The issue is that my readdir will be processed before the provider has finished rendering
I could do it via a custom component but it's more workchilly-rainbow-79265
09/16/2020, 10:03 AMexport AZURE_STORAGE_ACCOUNT=XXXXX
export AZURE_STORAGE_KEY=XXXXX
pulumi new --force
error:
Sorry, could not create stack 'dev': could not create stack: An IO error occurred while writing the new snapshot file: blob (key ".pulumi/stacks/dev.json") (code=NotFound): -> <http://github.com/Azure/azure-storage-blob-go/azblob.newStorageError|github.com/Azure/azure-storage-blob-go/azblob.newStorageError>, /home/travis/gopath/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.9.0/azblob/zc_storage_error.go:42
===== RESPONSE ERROR (ServiceCode=ResourceNotFound) =====
Description=The specified resource does not exist.
RequestId:69f212d5-801e-001a-1910-8c2575000000
Time:2020-09-16T10:02:29.5219649Z, Details:
Code: ResourceNotFound
PUT <https://pulumicloud.blob.core.windows.net/pulumistate/.pulumi/stacks/dev.json?timeout=61>
Content-Length: [70]
User-Agent: [go-cloud/blob/0.1.0 Azure-Storage/0.9 (go1.14.7; linux)]
X-Ms-Blob-Cache-Control: []
X-Ms-Blob-Content-Disposition: []
X-Ms-Blob-Content-Encoding: []
X-Ms-Blob-Content-Language: []
X-Ms-Blob-Content-Md5: [WDyPMum8QM5L4bgdHF8ieA==]
X-Ms-Blob-Content-Type: [text/plain; charset=utf-8]
X-Ms-Blob-Type: [BlockBlob]
X-Ms-Client-Request-Id: [ba87d3af-02c7-45e0-6b1e-550c44d0adcd]
X-Ms-Version: [2018-11-09]
--------------------------------------------------------------------------------
RESPONSE Status: 404 The specified resource does not exist.
Content-Length: [223]
Content-Type: [application/xml]
Date: [Wed, 16 Sep 2020 10:02:29 GMT]
Server: [Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0]
X-Ms-Error-Code: [ResourceNotFound]
X-Ms-Request-Id: [69f212d5-801e-001a-1910-8c2575000000]
X-Ms-Version: [2018-11-09]
This is a new project all togetherincalculable-dream-27508
09/16/2020, 10:17 AMincalculable-dream-27508
09/16/2020, 10:21 AMchilly-rainbow-79265
09/16/2020, 10:26 AM<docker://pulumi/actions>
for self managed states like blob ?
i was trying to do a CD with pulumi and state in blobincalculable-dream-27508
09/16/2020, 1:41 PMINSTANCES_API = [
openstack.compute.Instance(
...
__opts__=pulumi.ResourceOptions(provider=REGIONS[dc]))
for i in range(COUNT_API) for dc in REGIONS
]
and later
exported_api = {
srv.name.apply: srv.access_ip_v4.apply
for srv in INSTANCES_API
}
So far so good, and pulumi preview
works with this. But, when I add
pulumi.export('nodes_api', exported_api)
suddenly I get this error.incalculable-dream-27508
09/16/2020, 3:59 PM"WebADM internal traffic: %s %s from %s" % (dc, port, srv.name)
results in names like
WebADM internal traffic: ams rsignd from <pulumi.output.Output object at 0x7eff0ad30100>
so how should I be accessing this? https://www.pulumi.com/docs/intro/concepts/programming-model/#outputs wasn't very helpful regarding thatsilly-address-30441
09/16/2020, 5:18 PMfaint-dress-91709
09/16/2020, 5:31 PMincalculable-dream-27508
09/16/2020, 5:38 PMmany-psychiatrist-74327
09/16/2020, 6:26 PMpulumi
from the terminal)?
Context: letās say I already have some Python code that does a bunch of infrastructure provisioning already, and I want to incorporate some pulumi-managed resources in the same place. The hack Iām doing right now is creating a subprocess that calls pulumi
, which in turn will end up running some more python code. This seems silly, and I wonder if thereās a way to ācut the middlemanā?
I know (well, I think) that running pulumi
stands up a local grpc server, and then runs the Python code, which in turn sends rpcs to the local server to register the resources as it creates them. Could there be a way to run that local server as a daemon maybe, and then just run my Python code normally, without having to create the subprocess mentioned above?millions-furniture-75402
09/16/2020, 6:34 PMOutput<string>
to a config.json
?tall-scientist-89115
09/16/2020, 6:43 PMancient-megabyte-79588
09/16/2020, 9:57 PMpulumi destroy
... We have constĀ setupAgentĀ =Ā newĀ azure.compute.Extension(nameĀ +Ā "serverSetupAgent",<snip>);
that installs and configures an AzDO Deployment Agent ... If I don't "unregister" the agent with AzDO when I tear the server down, it is left as a dangling registration in AzDO and I can't create another agent with that name. I need to run a de-registration script on pulumi destroy
or something comparable, but I don't see any where to hook into that.