big-architect-71258
07/16/2020, 7:54 PMacoustic-hydrogen-87729
07/16/2020, 8:56 PMbright-restaurant-97414
07/16/2020, 11:24 PMacceptable-stone-35112
07/17/2020, 8:58 AMbored-river-53178
07/17/2020, 9:26 AMrefined-electrician-29847
07/17/2020, 11:36 AMcalm-pizza-15027
07/17/2020, 12:49 PMexport const bigtableRole = gaeApi.members.apply((e)=>{
return new gcp.projects.IAMBinding("IamBindingBigTable",{members:e,role:"roles/bigtable.admin"},{dependsOn:gaeApi})
})
acoustic-hydrogen-87729
07/17/2020, 4:45 PMacoustic-hydrogen-87729
07/17/2020, 4:47 PMacoustic-hydrogen-87729
07/17/2020, 4:51 PMprehistoric-potato-66531
07/17/2020, 6:56 PMprehistoric-potato-66531
07/17/2020, 6:56 PMfresh-pilot-59899
07/17/2020, 6:59 PMrich-breakfast-87724
07/17/2020, 7:51 PMclever-plumber-29709
07/17/2020, 8:29 PM;
i.e: https://www.pulumi.com/docs/reference/pkg/github/branchprotection/ (and i think lots of others are the same)
Checking on the source (https://github.com/pulumi/docs/blob/d1d22789dad6609d4a7336a9d41568a14a5064be/content/docs/reference/pkg/github/branchprotection.md) seems like this are generated by a bot?
I was going to try and open PR fixing this, but not sure if is a problem in the automation somewhere, of if I should open the PRfamous-garage-15683
07/17/2020, 10:25 PMconst vpc = new awsx.ec2.Vpc("custom");
from the docs, but it doesn't workfamous-garage-15683
07/17/2020, 10:25 PMindex.ts(5,13): error TS2554: Expected 2-3 arguments, but got 1.
famous-garage-15683
07/17/2020, 10:39 PM{}
arg, but it seems like a bugrich-breakfast-87724
07/18/2020, 12:18 AMbillowy-laptop-45963
07/18/2020, 12:21 AMsilly-train-98536
07/18/2020, 3:54 AMacceptable-stone-35112
07/18/2020, 8:56 AMthousands-train-20124
07/18/2020, 12:05 PMthousands-train-20124
07/18/2020, 12:06 PMacceptable-stone-35112
07/18/2020, 4:15 PMrich-breakfast-87724
07/19/2020, 11:19 PMconst aws = require("@pulumi/aws");
const pictures_bucket_name: String = aws.ssm.getParameter("pictures_bucket")
const pictures_bucket = new aws.s3.Bucket(pictures_bucket_name+"_resource", {
bucket: pictures_bucket_name
})
So, in the 'name' parameter of the bucket should I use 'pulumi.concat(pictures_bucket_name, "_resource")' or just that native string concatenation is ok?
Update:
I think I got it, but if someone could provide a validation to way I'm saying I would appreciate:
Output objects HAS to be used when I retrieve resources from the cloud and they might be automatically created by some method that returns Output objects of a given resource or I might have to wrap values by hand in an Output object (using pulumi.output()
), but there are two main moments in which I will use these values wrapped by an Output object: "deploy-time" and runtime.
If I want to manipulate the value wrapped by the Output object during deploy-time, when things may not be yet defined and values may not exist yet, then I must use a Promise-like approach with Output<T>.apply(f: T -> G)
and all resource-method parameters will accept this transformed Output as a valid argument. Or, in some cases (like native Pulumi classes) I may skip the apply()
step and just retrieve the expected value with Output<T>.some_attribute
.
If I want to use the value wrapped by the Output object during runtime, then I must call the Output<T>.get()
method to retrieve the actual Object<T>
.
Sorry if the question is not well formulated or seems like lack of effort in finding documentation, I've read a lot of it but I'm missing use cases and examples.rich-engineer-35554
07/20/2020, 3:33 AMrich-breakfast-87724
07/20/2020, 6:00 AM{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module '@pulumi/aws/s3/index.js'\nRequire stack:\n- /var/task/__index.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
"stack": [
"Runtime.ImportModuleError: Error: Cannot find module '@pulumi/aws/s3/index.js'",
"Require stack:",
"- /var/task/__index.js",
"- /var/runtime/UserFunction.js",
"- /var/runtime/index.js",
" at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object.<anonymous> (/var/runtime/index.js:43:30)",
" at Module._compile (internal/modules/cjs/loader.js:1133:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)",
" at Module.load (internal/modules/cjs/loader.js:977:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:877:14)",
" at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)",
" at internal/main/run_main_module.js:18:47"
]
}
The code is the one in the snippet.big-ability-1913
07/20/2020, 7:56 AMrefined-teacher-35628
07/20/2020, 8:28 AM