clever-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 AMstocky-lion-56153
07/20/2020, 10:25 AMwooden-branch-26004
07/20/2020, 11:59 AMcli
using --attach-acr <acr_name>
(ex. az aks ... create --attach-acr <acr_name>
) . How can I do the same via Pulumi? I haven't found anything related to it in KubernetesCluster
or KubernetesClusterArgs
.
Thanks!incalculable-engineer-92975
07/20/2020, 2:47 PMvictorious-gigabyte-4729
07/20/2020, 7:31 PMpulumi refresh
before a pulumi up
?gray-jewelry-3360
07/20/2020, 8:07 PMquiet-wolf-18467
07/20/2020, 8:26 PMdazzling-analyst-17846
07/20/2020, 10:34 PMwooden-branch-26004
07/21/2020, 9:40 AMpulumi up
.
Thanks!acceptable-church-17686
07/21/2020, 9:42 AMcalm-pizza-15027
07/21/2020, 7:11 PMexport const secertKub = new k8s.core.v1.Secret("k8ssecert",{data:{
"key.json": serviceAccountKey.privateKey,
}, metadata:{name:"runtimekey"},apiVersion: "v1", kind:"Secret" },{provider:clusterProvider})
const deployment = new k8s.apps.v1.Deployment(name_c,
{
metadata: {
namespace: namespaceName,
labels: appLabels,
},
spec: {
replicas: 1,
selector: { matchLabels: appLabels },
template: {
metadata: {
labels: appLabels,
},
spec: {
volumes:[{name:"runtimekey",secret: {secretName:secertKub.metadata.name}}],
serviceAccountName:serviceAccountName,
containers: [
{
env:[{name:"GOOGLE_APPLICATION_CREDENTIALS",value:myProject.projectId},{name:"GOOGLE_CLOUD_PROJECT",value:myProject.projectId},{name:"ENVIRONMENT_TYPE",value:"LOCAL_DEVELOPMENT"}],
name: "my-app",
image: dockerCfServices.imageName,
ports: [{ name: "http", containerPort: 8080 }],
volumeMounts:[{
name:"runtimekey",
mountPath: "/var/secrets/google"
}],
},
],
},
},
},
},
{
provider: clusterProvider,
},
);
calm-pizza-15027
07/21/2020, 7:12 PMcool-egg-852
07/21/2020, 9:01 PMOutput
as part of a resource name is starting to become extremely irritating. Are there no plans to make this possible? Using a StackReference, I have an array of resources (in this case GKE clusters). I need to loop over this and create resources for each one. But I can’t use anything from this because I can’t use an Output<string>
as a string
.bright-restaurant-97414
07/21/2020, 9:49 PMmake build
in a Pulumi integration project does it do something weird to your local box.
I was attempting to update a terraform provider in the new relic pulumi project and yarn linked the temp module.
After reverting that and deleting that project I am seeing these weird errors still.
(⎈ |aws-eks-dev:fieldju-dev) /Users/fieldju/dev/armory-io/pulumi-newrelic-infrastructure (master)
$ p up
Previewing update (prod):
Type Name Plan Info
pulumi:pulumi:Stack plumi-newrelic-infrastructure-prod
└─ pulumi:providers:newrelic default_3_0_1 1 error
Diagnostics:
pulumi:providers:newrelic (default_3_0_1):
error: rpc error: code = Unknown desc = could not validate provider configuration: 1 error occurred:
* Internal validation of the provider failed! This is always a bug
with the provider itself, and not a user issue. Please report
this bug:
1 error occurred:
* resource newrelic_nrql_alert_condition: ConflictsWith: critical configuration block reference (term.0) can only be used with TypeList and MaxItems: 1 configuration blocks
but my project still works in CI but somehow I hosed my laptop 🤔
deleting my go path fixed it, the pulumi bin uses go sources on your path?helpful-processor-86468
07/22/2020, 1:02 PMhelpful-processor-86468
07/22/2020, 1:02 PMmillions-furniture-75402
07/22/2020, 1:02 PMpulumi preview
you can also auto-approve preview and apply changes with pulumi up -y
helpful-processor-86468
07/22/2020, 1:04 PMbetter-actor-92669
07/22/2020, 1:27 PM--skip-preview
stocky-lion-56153
07/22/2020, 1:27 PMlemon-agent-27707
07/22/2020, 3:11 PMhelpful-processor-86468
07/23/2020, 1:04 PMgoogle cloud function
.
In order to deploy it, I have to zip it first. This zipping process can take some time if for example I have 10-20 functions in my service.
And then I have to double that time, because pulumi executes twice.