fast-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.faint-dress-91709
09/16/2020, 10:09 PMchilly-rainbow-79265
09/16/2020, 11:42 PMpulumi/action
for creating azure vm, I'm getting error
ws-ts-azure-comp:webserver:WebServer es-1 create
pulumi:providers:azure default error: no resource plugin 'azure' found in the workspace or on your $PATH
steep-caravan-65104
09/17/2020, 2:48 AMpulumi config set --secret
They receive the following error:
error: constructing secrets manager of type "cloud": secrets (code=PermissionDenied): rpc error: code = PermissionDenied desc = Permission 'cloudkms.cryptoKeyVersions.useToDecrypt' denied on resource 'projects/<gcp-creds-project>/locations/global/keyRings/global-keyring/cryptoKeys/pulumi-secret' (or it may not exist).
With a GCP user or service account which has encrypt + decrypt permissions on the key, this issue is not seen.
Does anyone have ideas about why a DECRYPT key permission would be required to ENCRYPT a secret with pulumi using gcpkms
? This sounds like a pulumi bug to me, could someone suggest workarounds if possible?chilly-rainbow-79265
09/17/2020, 5:09 AMsteep-angle-29984
09/17/2020, 7:27 AMchilly-rainbow-79265
09/17/2020, 9:14 AMbitter-application-91815
09/17/2020, 9:47 AMcluster.provider
herebitter-application-91815
09/17/2020, 9:47 AMincalculable-dream-27508
09/17/2020, 11:57 AMNote that because most resources are auto-named, the trailing dashes that you see above will actually be followed by random suffixes that appear in the Outputs and in Azure.which would solve the issue I'm fighting with. But I'm reading the code, and I don't see yet how it's achieved?
limited-rainbow-51650
09/17/2020, 3:11 PMCurrent stack outputs (2):
OUTPUT VALUE
mysqlAdmin {"password":"<redacted>","user":"mysqladmin"}
mysqlEndpoint <redacted>.<http://database.azure.com|database.azure.com>
But how can I retrieve it as an object via StackReference
? I seem to miss the call requireObject<T>(key)
similar like on Config
. How can I retrieve this info in another stack?bitter-application-91815
09/17/2020, 3:24 PMunknown Invoke type "kubernetes:helm:template"
bitter-application-91815
09/17/2020, 3:25 PMbitter-application-91815
09/17/2020, 3:25 PM<https://hub.helm.sh/charts/incubator/aws-alb-ingress-controller>
bitter-application-91815
09/17/2020, 3:25 PMfunc (w *worker) applyAlbCharts(ctx *pulumi.Context, namespace string) error {
_, err := helm.NewChart(ctx, fmt.Sprintf("axiom-alb-charts-%s", w.targetEnv), helm.ChartArgs{
Chart: pulumi.String("incubator/aws-alb-ingress-controller"),
Version: pulumi.String("1.0.2"),
Namespace: pulumi.String(namespace),
FetchArgs: helm.FetchArgs{
Repo: pulumi.String("<https://kubernetes-charts.storage.googleapis.com/>"),
},
Values: pulumi.Map{
"clusterName": w.eksCluster.Name,
"autoDiscoverAwsRegion": pulumi.Bool(true),
"autoDiscoverAwsVpcID": pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
}
bitter-application-91815
09/17/2020, 3:25 PMfunc (w *worker) applyAlbCharts(ctx *pulumi.Context, namespace string) error {
_, err := helm.NewChart(ctx, fmt.Sprintf("axiom-alb-charts-%s", w.targetEnv), helm.ChartArgs{
Chart: pulumi.String("incubator/aws-alb-ingress-controller"),
Version: pulumi.String("1.0.2"),
Namespace: pulumi.String(namespace),
FetchArgs: helm.FetchArgs{
Repo: pulumi.String("<https://kubernetes-charts.storage.googleapis.com/>"),
},
Values: pulumi.Map{
"clusterName": w.eksCluster.Name,
"autoDiscoverAwsRegion": pulumi.Bool(true),
"autoDiscoverAwsVpcID": pulumi.Bool(true),
},
})
if err != nil {
return err
}
return nil
}