proud-tiger-5743
09/28/2018, 9:06 PMstocky-spoon-28903
09/28/2018, 9:06 PMstocky-spoon-28903
09/28/2018, 9:06 PMpulumi.all
stocky-spoon-28903
09/28/2018, 9:07 PMconst policy = pulumi.all([thing1.arn, thing2.arn]).apply(([arn1, arn2]) => {
return ......
});
proud-tiger-5743
09/28/2018, 9:07 PMstocky-spoon-28903
09/28/2018, 9:08 PMstocky-spoon-28903
09/28/2018, 9:09 PMconst policy = pulumi.all({
arn1: thing1.arn,
arn2: thing2.arn
}).apply(reified => {
// reified.arn1 and reified.arn2 are unwrapped values here
});
proud-tiger-5743
09/28/2018, 9:16 PMglamorous-printer-66548
09/28/2018, 10:04 PM.get
on resources works and where it gets its data from? Does it query information from the state in the current stack, can I query other stacks, does it call the provider APIs to figure out the information? I need to get some info about an existing GKE cluster, similar to what I would do with “data sources” in terraform https://www.terraform.io/docs/providers/google/d/google_container_cluster.html.stocky-spoon-28903
09/28/2018, 10:06 PMget*
functionsstocky-spoon-28903
09/28/2018, 10:07 PMglamorous-printer-66548
09/28/2018, 10:11 PMstocky-spoon-28903
09/28/2018, 10:12 PMglamorous-printer-66548
09/28/2018, 10:12 PM.get
method on resource classes then for?stocky-spoon-28903
09/28/2018, 10:12 PMincalculable-sundown-82514
09/28/2018, 10:13 PM.get
to get a Resource object representing something that Pulumi didn’t create.incalculable-sundown-82514
09/28/2018, 10:13 PMincalculable-sundown-82514
09/28/2018, 10:13 PMincalculable-sundown-82514
09/28/2018, 10:14 PM.get
overlaps a little with TF data sourcesglamorous-printer-66548
09/28/2018, 10:17 PMPromise<gcp.container.GetClusterResult>
into an Input<gcp.container.GetClusterResult>
or Output<gcp.container.GetClusterResult>
so that I can pass subproperties of the result to pulumi resources without manual unwrapping?full-dress-10026
09/28/2018, 10:44 PMsquare-crayon-17656
09/28/2018, 10:45 PMsquare-crayon-17656
09/28/2018, 10:47 PMsquare-crayon-17656
09/28/2018, 10:47 PMbusy-umbrella-36067
09/30/2018, 9:28 PMglamorous-printer-66548
10/01/2018, 3:45 AM<Resource>.get(...)
it seems the imported resource info always shows up in the stack diff, even if it hasn’t really changed. I’m seeing this behaviour with GKE clusters and this basically adds multiple hundred lines of noise to each diff. Is this a known limitation or bug, shall I open an issue?busy-umbrella-36067
10/01/2018, 5:12 PMstocky-spoon-28903
10/01/2018, 6:03 PMbusy-umbrella-36067
10/01/2018, 6:07 PM~/.pulumi/bin # ls -l
total 88108
-rwxr-xr-x 1 root root 28934167 Oct 1 17:11 pulumi
-rwxr-xr-x 1 root root 20417267 Oct 1 17:11 pulumi-language-go
-rwxr-xr-x 1 root root 20443010 Oct 1 17:11 pulumi-language-nodejs
-rwxr-xr-x 1 root root 20412343 Oct 1 17:11 pulumi-language-python
-rw-r--r-- 1 root root 2430 Oct 1 17:11 pulumi-language-python-exec
-rwxr-xr-x 1 root root 69 Oct 1 17:11 pulumi-resource-pulumi-nodejs
~/.pulumi/bin # ./pulumi
sh: ./pulumi: not found
~/.pulumi/bin # ldd ./pulumi
/lib64/ld-linux-x86-64.so.2 (0x7f7ce7ae3000)
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f7ce7ae3000)
libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f7ce7ae3000)
~/.pulumi/bin #
busy-umbrella-36067
10/01/2018, 6:08 PM